struct
TransactionBodyThe body of a transaction.
CDDL description:
transaction_body = { 0 : set<transaction_input> ; inputs , 1 : [* transaction_output] , 2 : coin ; fee , ? 3 : uint ; time to live , ? 4 : [* certificate] , ? 5 : withdrawals , ? 6 : update , ? 7 : auxiliary_data_hash , ? 8 : uint ; validity interval start , ? 9 : mint , ? 11 : script_data_hash , ? 13 : set<transaction_input> ; collateral inputs , ? 14 : required_signers , ? 15 : network_id , ? 16 : transaction_output ; collateral return; New , ? 17 : coin ; total collateral; New , ? 18 : set<transaction_input> ; reference inputs; New }
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 body CBOR object for serialization.
Function documentation
void cardano:: babbage:: TransactionBody:: deserializer(const cppbor::Map& data) final
Populate the object from the CBOR data.
Parameters | |
---|---|
data | CBOR map object. |
cppbor::Map cardano:: babbage:: TransactionBody:: serializer() const final
Create a transaction body CBOR object for serialization.
Returns | CBOR map object. |
---|