Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Attaches a script to the transaction witness set.
Attaches a script to the transaction witness set.
Use this method to make scripts available for spending script-locked UTXOs or minting tokens. The script will be included in the transaction's witness set.
Value parameters
- script
-
the script to attach
Attributes
Attaches datum data to the transaction witness set.
Attaches datum data to the transaction witness set.
Use this method when sending to an address with a datum hash (via payTo). The datum will be included in the transaction's witness set and can be referenced by its hash.
Value parameters
- data
-
the datum to attach
Attributes
Adds the specified utxos to the list of collateral inputs.
Adds the specified utxos to the list of collateral inputs.
Collateral inputs are used to cover transaction fees if script execution fails. They are only consumed if a script fails validation.
Attributes
Adds the specified utxos to the list of collateral inputs.
Adds the specified utxos to the list of collateral inputs.
Collateral inputs are used to cover transaction fees if script execution fails. They are only consumed if a script fails validation.
Attributes
Adds transaction metadata (auxiliary data).
Adds transaction metadata (auxiliary data).
Metadata is optional data attached to a transaction that does not affect validation but can be used for off-chain purposes.
Value parameters
- auxiliaryData
-
the auxiliary data to attach
Attributes
Adds the specified output to the list of transaction outputs.
Adds the specified output to the list of transaction outputs.
Use this method for fine-grained control over output construction. For simpler cases, use payTo.
Value parameters
- output
-
the transaction output to add
Attributes
Sends the specified value to the given address without a datum.
Sends the specified value to the given address without a datum.
Value parameters
- address
-
recipient address
- value
-
amount to send
Attributes
Sends the specified value to the given address with an inline datum.
Sends the specified value to the given address with an inline datum.
Value parameters
- address
-
recipient address
- datum
-
inline datum to attach to the output
- value
-
amount to send
Attributes
Sends the specified value to the given address with a datum hash.
Adds the specified utxos to the list of reference inputs.
Adds the specified utxos to the list of reference inputs.
Reference inputs allow scripts to read UTXOs without consuming them.
Attributes
Adds the specified pubkey utxo to the list of inputs, thus spending it.
Adds the specified pubkey utxo to the list of inputs, thus spending it.
If the sum of outputs exceeds the sum of spent inputs, the change is going to be handled according to changeTo or diffHandler.
Value parameters
- utxo
-
utxo to spend
Attributes
- Note
Adds the specified pubkey utxos to the list of inputs, thus spending them.
Adds the specified pubkey utxos to the list of inputs, thus spending them.
If the sum of outputs exceeds the sum of spent inputs, the change is going to be handled according to changeTo or diffHandler.
Value parameters
- utxos
-
utxos to spend
Attributes
- Note
Adds the specified script protected utxo to the list of inputs and the specified redeemer to the witness set.
Adds the specified script protected utxo to the list of inputs and the specified redeemer to the witness set.
Make sure to also call attach with the script that locks these utxos. If the script that protects the utxo fails with the specified redeemer, build is going to throw.
If the sum of outputs exceeds the sum of spent inputs, the change is going to be handled according to changeTo or diffHandler.
Value parameters
- redeemer
-
redeemer to pass to the script to unlock the inputs
- utxo
-
utxo to spend
Attributes
Adds the specified script protected utxo to the list of inputs and the specified redeemer to the witness set.
Adds the specified script protected utxo to the list of inputs and the specified redeemer to the witness set.
If the specified script fails with the specified redeemer`, build is going to throw.
If the sum of outputs exceeds the sum of spent inputs, the change is going to be handled according to changeTo or diffHandler.
Value parameters
- redeemer
-
redeemer to pass to the script to unlock the inputs
- script
-
script that protects the
utxo - utxo
-
utxo to spend
Attributes
Adds the specified script protected utxo to the list of inputs and the specified redeemer to the witness set, with additional required signers.
Adds the specified script protected utxo to the list of inputs and the specified redeemer to the witness set, with additional required signers.
Use this method when the validator script requires specific signatures beyond the spender. The public key hashes in additionalSigners will be added to the transaction's required signers field.
If the specified script fails with the specified redeemer, build is going to throw.
If the sum of outputs exceeds the sum of spent inputs, the change is going to be handled according to changeTo or diffHandler.
Value parameters
- additionalSigners
-
set of public key hashes that must sign the transaction
- redeemer
-
redeemer to pass to the script to unlock the inputs
- script
-
script that protects the
utxo - utxo
-
utxo to spend
Attributes
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product