a certificate to include in the transaction
Adds a reference input. A Plutus script it holds, given as plutusScript or on the
address credential, sets the script's language in the script integrity hash once the
transaction runs that script, i.e. spends from, mints with, withdraws with, certifies with
or votes with its hash.
OptionalextraOutputs: Output[]OptionalextraOutputs: Output[]This method scans the certificates added in the transaction to calculate additional ADA available in inputs as part of the deposit refund. Essentially ADA to be considered as additional input due to deposit refunds.
additional ADA available as input
This method scans the certificates and proposal procedures added in the transaction to calculate additional ADA required for transaction validity.
additional ADA required for a valid transaction
Every redeemer with the pointer the ledger identifies it by: what it's for (tag) and the
index of the item it redeems. The redeemer is the object you passed in, so setting its
exUnits, say from evaluating the transaction, updates the fee and what gets built.
Function for a simple send ADA transaction Provide necessary outputs, and available inputs, returns a final tx
Function to prepare transaction automatically There are other helper methods for preparing transactions that use this method This method should be used when you know what you are doing sets required inputs, fees, change etc resulting transaction is the final tx that can be built for signing
A transaction that runs Plutus scripts also gets as many of collateralInputs as it takes
to cover the fee. A collateral return sends what a failing script wouldn't take back to the
change address, and the total collateral is set to what it would take. Both replace any
collateral return or total collateral set before.
Call it again after changing the transaction, such as setting execution units from an evaluation, and it balances the transaction again. It replaces the change outputs it added before and keeps the inputs and collateral it spent, adding more if the fee needs them. When it throws, the transaction is left as it was.
When the transaction needs optional protocol parameters that are missing, such as the Plutus ones, it throws an error naming all of them.
The method will add a certificate to the transaction to be included in cbor This method will automatically scan and include each unique required witnesses in the map to help sign the transaction