cardano::shelley::TransactionOutput struct

A transaction output.

CDDL description:

transaction_output = [address, amount : coin]

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.
auto deserializer(const cppbor::Array& data) →  void final virtual
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 virtual
Populate a CBOR object for serialization.

Public variables

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

Function documentation

void final cardano::shelley::TransactionOutput::deserializer(const cppbor::Array& data) virtual

Populate the object from the CBOR data.

Parameters
data CBOR array object.

cppbor::Array final cardano::shelley::TransactionOutput::serializer() const virtual

Populate a CBOR object for serialization.

Returns CBOR array object.