Initializes a new instance of the TransactionBody class.
A list of references to UTxOs (Unspent Transaction Outputs) that the transaction intends to spend. Each input refers to a previous transaction's output.
A list of outputs where ownership of the value, including coins (ADA) and possibly other assets, will be assigned by address.
The amount of ADA designated as the fee for this transaction. Fees compensate stakeholders, including stake pool operators, for participating in the network.
Optional ttl: Cardano.SlotSpecifies the slot number until which the transaction is valid. If the transaction isn't included in a block by this slot, it becomes invalid.
Private #accountPrivate #auxiliaryPrivate #certsPrivate #collateralPrivate #collateralPrivate #currentPrivate #directPrivate #donationPrivate #feePrivate #guardsPrivate #inputsPrivate #mintPrivate #networkPrivate #originalPrivate #outputsPrivate #proposalPrivate #referencePrivate #requiredPrivate #scriptPrivate #subPrivate #totalPrivate #ttlPrivate #updatePrivate #validityPrivate #votingPrivate #withdrawalsPrivate #getGets the account balance intervals (body key 26). Each entry asserts that the balance of the account with the given credential lies in a half-open range at validation time.
The map of credentials to balance intervals.
Gets the hash of the auxiliary data of the transaction, such as transaction metadata.
The hash of the auxiliary data of the transaction.
Gets the certificates to be issued by this transaction. These are used for operations. For example, they can be used to register a stake key, delegate a stake, or register a stake pool.
The certificates to be issued by this transaction.
Gets the UTxOs (Unspent Transaction Outputs) that a sender commits to forfeit if a transaction with a Plutus script fails to execute correctly.
The UTxOs that a sender commits to forfeit.
Gets the collateral return.
An output with the remainder of our collateral input(s) in the event we over-collateralize our transaction.
Gets the direct deposits (body key 25). Each entry deposits coin directly into a reward account without a withdrawal-style witness.
The map of reward accounts to deposited coin.
Gets the credential form guards of body key 14. Undefined when the key holds the legacy key hash form (see requiredSigners).
The credential form guards.
Computes the hash of the transaction body.
The hash of the transaction body.
Gets the list of references to UTxOs (Unspent Transaction Outputs) that the transaction intends to spend. Each input refers to a previous transaction's output.
The list of references to UTxOs.
Gets the list of outputs where the value will go. Each output specifies an address and value.
The list of outputs.
Gets the proposal procedures of this transaction.
the proposal procedures.
Gets the reference inputs of this transaction.
the reference inputs.
Gets the set of keys which need to sign a transaction. Undefined when body key 14 holds credential form guards.
The set of keys which need to sign a transaction
Gets the script data integrity hash.
The script data integrity hash.
Sets the account balance intervals (body key 26). Each entry asserts that the balance of the account with the given credential lies in a half-open range at validation time.
The map of credentials to balance intervals.
Sets the hash of the auxiliary data of the transaction, such as transaction metadata.
The hash of the auxiliary data of the transaction.
Sets the certificates to be issued by this transaction. These are used for operations. For example, they can be used to register a stake key, delegate a stake, or register a stake pool.
The certificates to be issued by this transaction.
Sets the UTxOs (Unspent Transaction Outputs) that a sender commits to forfeit if a transaction with a Plutus script fails to execute correctly.
The UTxOs that a sender commits to forfeit.
Return collateral allows us to specify an output with the remainder of our collateral input(s) in the event we over-collateralize our transaction. This allows us to avoid overpaying the collateral and also creates the possibility for native assets to be also present in the collateral, though they will not serve as a payment for the fee.
A type of change output specifically for collateral. Include this if the collateral input has an excess of ADA or includes other assets.
Sets the direct deposits (body key 25). Each entry deposits coin directly into a reward account without a withdrawal-style witness.
The map of reward accounts to deposited coin.
Sets the guards on body key 14. Key hash form guards are stored as required signers so the legacy encoding stays byte-identical; credential form guards encode as a credential ordered set.
The guards that must approve the transaction.
Sets the list of references to UTxOs (Unspent Transaction Outputs) that the transaction intends to spend. Each input refers to a previous transaction's output.
the list of references to UTxOs.
Sets the list of outputs where the value will go. Each output typically specifies an address and an amount of ADA or other tokens.
The list of outputs.
Sets the proposal procedures of this transaction.
the proposal procedures.
Reference inputs allows looking at an output without spending it. This facilitates access to information stored on the blockchain without the need of spending and recreating UTxOs.
Specifies an arbitrary set of keys which need to sign a transaction. Clears any credential form guards previously set on body key 14.
The set of keys which need to sign a transaction
Sets the script data integrity hash.
The script data integrity hash.
Sets the sub transactions (body key 23, CIP-0118 nested transactions). The set is ordered and keyed by each sub transaction's own id; it must be non-empty and free of duplicate ids.
The ordered set of sub transactions.
The total collateral field lets users write transactions whose collateral is evident by just looking at the tx body instead of requiring information in the UTxO. The specification of total collateral is optional.
It does not change how the collateral is computed but transactions whose collateral is different from the amount specified will be invalid.
The total collateral amount.
Sets the protocol parameter updates. It's a way for the protocol to be updated based on stakeholder input.
The protocol parameter updates.
Sets the voting procedures of this transaction.
the voting procedures.
Sets the list of withdrawals. This specifies from which staking addresses rewards should be withdrawn.
The list of withdrawals.
Gets the sub transactions (body key 23, CIP-0118 nested transactions).
The ordered set of sub transactions.
Gets the protocol parameter updates. It's a way for the protocol to be updated based on stakeholder input.
The protocol parameter updates.
Gets the validity interval for this transaction. Introduced in the Alonzo era, this specifies the earliest slot in which the transaction is valid. It's like the inverse of TTL.
The earliest slot in which the transaction is valid.
Gets the voting procedures of this transaction.
the voting procedures.
Gets the list of withdrawals. This specifies from which staking addresses rewards should be withdrawn.
The list of withdrawals.
Static fromDeserializes the TransactionBody from a CBOR byte array.
The new TransactionBody instance.
The CBOR encoded TransactionBody object.
Optional options: Serialization.DeserializationOptionsDeserialization options. When strict is true, throws on unknown map keys
instead of skipping them.
Static fromCreates a TransactionBody object from the given Core TransactionBody object.
Generated using TypeDoc
The transaction body encapsulates the core details of a transaction.