struct
TransactionOutputtransaction_output = [ address , amount : value , ? datum_hash : $hash32 ]
Base classes
- struct cardano::ArraySerializable
- Virtual struct defining CBOR array serializability.
Public functions
-
void deserialize(std::
span<const uint8_t> bytes) - Deserialize CBOR byte vector.
- void deserializer(const cppbor::Array& data) final
- Populate the object from the CBOR data.
-
auto serialize() const → std::
vector<uint8_t> - Serialize the object as a CBOR byte vector.
- auto serializer() const → cppbor::Array final
- Create a transaction output CBOR object for serialization.
Public variables
- Address address
- The address of the recipient.
- Coin amount
- The amount of the output (lovelace).
-
std::
optional<Hash32> datum_hash - The ouput datum hash (optional).
Function documentation
void cardano:: alonzo:: TransactionOutput:: deserializer(const cppbor::Array& data) final
Populate the object from the CBOR data.
Parameters | |
---|---|
data | CBOR array object. |
cppbor::Array cardano:: alonzo:: TransactionOutput:: serializer() const final
Create a transaction output CBOR object for serialization.
Returns | CBOR array object. |
---|