Initializes a new instance of the Transaction class.
Data structure that contains all the elements of the transaction.
Collection of digital signatures that are attached to a transaction to prove that it has been authorized by the appropriate parties, the witness set also contain all required information to satisfy native or plutus script execution requirements, such as Datums, Redeemers and the script itself.
Optional
auxiliaryData: Serialization.AuxiliaryDataAdditional information that can be attached to a transaction to provide more context or information about the transaction.
Private
#auxiliaryPrivate
#bodyPrivate
#isPrivate
#originalPrivate
#witnessGets the transaction Auxiliary data.
A clone of the transaction Auxiliary data (or undefined if the transaction doesnt have auxiliary data).
Data structure that contains all key elements of the transaction.
A deep clone of the transaction body.
Performs a deep clone of the transaction object.
Computes the transaction id for this transaction.
Sets the transaction auxiliary data.
The auxiliary is additional information that can be attached to a transaction to provide more context or information about the transaction.
The auxiliary data to be set.
Sets the transaction body.
The transaction body.
Sets the valid flag on the transaction.
Transactions containing Plutus scripts that are expected to fail validation can still be submitted if this value is set to false.
Remark: Sending transactions with invalid scripts will cause the collateral of the transaction to be lost.
Sets the witness set of the transaction.
A deep clone of the witness set in this transaction.
Serializes a transaction into CBOR format.
The transaction in CBOR format.
Collection of digital signatures that are attached to a transaction to prove that it has been authorized by the appropriate parties, the witness set also contain all required information to satisfy native or plutus script execution requirements, such as Datums, Redeemers and the script itself.
A deep clone of the transaction witness set.
Static
fromDeserializes the transaction from a CBOR byte array.
The new transaction instance.
The CBOR encoded transaction object.
Static
fromCreates a transaction object from the given Core Tx object.
Generated using TypeDoc
A transaction is a record of value transfer between two or more addresses on the network. It represents a request to modify the state of the blockchain, by transferring a certain amount of ADA or a native asset from one address to another. Each transaction includes inputs and outputs, where the inputs represent the addresses that are sending ADA or the native asset, and the outputs represent the addresses that are receiving ADA or the native asset.
To ensure the security and integrity of the Cardano blockchain, each transaction is cryptographically signed using the private key of the sender's address, which proves that the sender has authorized the transaction.
Additionally, each transaction on the Cardano blockchain can also carry metadata, which can be used to include additional information about the transaction, such as a description or a reference to a specific product or service.