cardano::babbage::PostAlonzoTransactionOutput struct

PostAlonzoTransactionOutput.

CDDL:

post_alonzo_transaction_output =
  { 0 : address
  , 1 : value
  , ? 2 : datum_option ; New; datum option
  , ? 3 : script_ref   ; New; script reference
  }

Base classes

struct cardano::MapSerializable
Virtual struct defining CBOR map serializability.

Public functions

auto serialize() const →  std::vector<uint8_t>
Serialize the object as a CBOR byte vector.
auto serializer() const →  cppbor::Map final
The ouput datum option (optional).

Public variables

Address address
The address of the recipient.
Coin amount
The amount of the output (lovelace).

Function documentation

cppbor::Map cardano::babbage::PostAlonzoTransactionOutput::serializer() const final

The ouput datum option (optional).

Returns CBOR array object.

The script reference (optional)

Create a transaction output CBOR object for serialization.