struct
PostAlonzoTransactionOutputCDDL:
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
-
void deserialize(std::
span<const uint8_t> bytes) - Deserialize CBOR byte vector.
- void deserializer(const cppbor::Map& 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::Map 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<ScriptRef> script_ref - The ouput datum option (optional).
Function documentation
void cardano:: babbage:: PostAlonzoTransactionOutput:: deserializer(const cppbor::Map& data) final
Populate the object from the CBOR data.
Parameters | |
---|---|
data | CBOR map object. |
cppbor::Map cardano:: babbage:: PostAlonzoTransactionOutput:: serializer() const final
Create a transaction output CBOR object for serialization.
Returns | CBOR array object. |
---|
Variable documentation
std:: optional<ScriptRef> cardano:: babbage:: PostAlonzoTransactionOutput:: script_ref
The ouput datum option (optional).
The script reference (optional)