Initializes a new instance of the TransactionOutput class.
The destination address where the ADA (and possibly other native tokens) is being sent.
The amount of ADA and any other native tokens being sent to the address.
Private
#addressPrivate
#amountPrivate
#datumPrivate
#originalPrivate
#scriptPrivate
#getGets the amount of ADA and any other native tokens being sent to the address.
The amount of ADA and native tokens being sent.
Gets the datum (if any) associated with this output. The Datum acts as a piece of state for the UTxO, and Plutus scripts can use this state to determine their behavior.
the datum associated with this output or undefined if none.
The key idea is to use reference inputs and modified outputs which carry actual scripts ("reference scripts"), and allow such reference scripts to satisfy the script witnessing requirement for a transaction.
This means that the transaction which uses the script will not need to provide it at all, so long as it referenced an output which contained the script.
The script reference.
Sets the datum associated with this output. The Datum acts as a piece of state for the UTxO, and Plutus scripts can use this state to determine their behavior.
the datum that we want to associate with this output.
Sets the script reference for this output.
The script reference.
Static
fromDeserializes the TransactionOutput from a CBOR byte array.
The new TransactionOutput instance.
The CBOR encoded TransactionOutput object.
Static
fromCreates a TransactionOutput object from the given Core TransactionOutput object.
Generated using TypeDoc
A TransactionOutput object includes the address which represents a public key hash or a script hash that can unlock the output, and the funds that are held inside.