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
#auxiliaryPrivate
#certsPrivate
#collateralPrivate
#collateralPrivate
#currentPrivate
#donationPrivate
#feePrivate
#inputsPrivate
#mintPrivate
#networkPrivate
#originalPrivate
#outputsPrivate
#proposalPrivate
#referencePrivate
#requiredPrivate
#scriptPrivate
#totalPrivate
#ttlPrivate
#updatePrivate
#validityPrivate
#votingPrivate
#withdrawalsPrivate
#getGets 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.
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.
The set of keys which need to sign a transaction
Gets the script data integrity hash.
The script data integrity hash.
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 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.
The set of keys which need to sign a transaction
Sets the script data integrity hash.
The script data integrity hash.
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 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.
Static
fromCreates a TransactionBody object from the given Core TransactionBody object.
Generated using TypeDoc
The transaction body encapsulates the core details of a transaction.