cardano::alonzo::TransactionOutput struct

TransactionOutput.

transaction_output =
  [ address
  , amount : value
  , ? datum_hash : $hash32
  ]

Base classes

struct cardano::ArraySerializable
Virtual struct defining CBOR array serializability.

Public functions

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

cppbor::Array cardano::alonzo::TransactionOutput::serializer() const final

Create a transaction output CBOR object for serialization.

Returns CBOR array object.