Initializes a new instance of the SubTransactionBody class.
A list of references to UTxOs (Unspent Transaction Outputs) that the sub transaction intends to spend.
A list of outputs where ownership of the value will be assigned by address.
Private #accountPrivate #auxiliaryPrivate #certsPrivate #currentPrivate #directPrivate #donationPrivate #guardsPrivate #inputsPrivate #mintPrivate #networkPrivate #originalPrivate #outputsPrivate #proposalPrivate #referencePrivate #requiredPrivate #scriptPrivate #ttlPrivate #validityPrivate #votingPrivate #withdrawalsPrivate #getGets the account balance intervals (body key 26). Each entry asserts that the balance of the account with the given credential lies in a half-open range at validation time.
The map of credentials to balance intervals.
Gets the hash of the auxiliary data of the sub transaction, such as transaction metadata.
The hash of the auxiliary data of the sub transaction.
Gets the certificates to be issued by this sub transaction.
The certificates to be issued by this sub transaction.
Gets the direct deposits (body key 25). Each entry deposits coin directly into a reward account without a withdrawal-style witness.
The map of reward accounts to deposited coin.
Gets the guards of body key 14.
The guards, or undefined when key 14 is absent.
Gets the list of references to UTxOs (Unspent Transaction Outputs) that the sub transaction intends to spend.
The list of references to UTxOs.
Gets the list of outputs where the value will go.
The list of outputs.
Gets the proposal procedures of this sub transaction.
the proposal procedures.
Gets the reference inputs of this sub transaction.
the reference inputs.
Gets the required top level guards (body key 24). Each entry names a guard the enclosing transaction must carry, mapped to the plutus datum it must be supplied with, or null when the guard carries no datum.
The map of guard credentials to their optional datum.
Gets the script data integrity hash.
The script data integrity hash.
Sets the account balance intervals (body key 26). Each entry asserts that the balance of the account with the given credential lies in a half-open range at validation time.
The map of credentials to balance intervals.
Sets the hash of the auxiliary data of the sub transaction, such as transaction metadata.
The hash of the auxiliary data of the sub transaction.
Sets the certificates to be issued by this sub transaction.
The certificates to be issued by this sub transaction.
Sets the direct deposits (body key 25). Each entry deposits coin directly into a reward account without a withdrawal-style witness.
The map of reward accounts to deposited coin.
Sets the guards on body key 14. Guards are credentials that must approve the sub transaction, in either the key hash set or credential ordered set wire form.
The guards that must approve the sub transaction.
Sets the list of references to UTxOs (Unspent Transaction Outputs) that the sub transaction intends to spend.
the list of references to UTxOs.
Sets the list of outputs where the value will go.
The list of outputs.
Sets the proposal procedures of this sub 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.
The reference inputs.
Sets the required top level guards (body key 24). Each entry names a guard the enclosing transaction must carry, mapped to the plutus datum it must be supplied with, or null when the guard carries no datum (CBOR nil on the wire, used for key hash and native script guards).
The map of guard credentials to their optional datum.
Sets the script data integrity hash.
The script data integrity hash.
Sets the voting procedures of this sub transaction.
the voting procedures.
Sets the list of withdrawals. This specifies from which staking addresses rewards should be withdrawn.
The list of withdrawals.
Creates a Core SubTransactionBody object from the current SubTransactionBody object.
The Core SubTransactionBody object.
Gets the voting procedures of this sub 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 SubTransactionBody from a CBOR byte array.
Key admission is strict regardless of options, mirroring the ledger decoderByKey: keys 0 and 1 are required, the top-level-only keys 2, 13, 16, 17 and 23 are rejected, and any other key outside the CDDL sub_transaction_body key set is rejected rather than skipped.
The new SubTransactionBody instance.
The CBOR encoded SubTransactionBody object.
Optional options: Serialization.DeserializationOptionsDeserialization options forwarded to nested output decoding.
Static fromCreates a SubTransactionBody object from the given Core SubTransactionBody object.
The core SubTransactionBody object.
Generated using TypeDoc
The body of a Dijkstra sub transaction (CIP-0118 nested transactions).
A sub transaction body reuses the top level transaction body keys but excludes fee (2), collateral inputs (13), collateral return (16), total collateral (17) and sub transactions (23) - the enclosing transaction pays the fee and posts collateral for the whole batch - and adds key 24 required_top_level_guards: guards the enclosing transaction must carry, each with an optional plutus datum.
Unlike the permissive top level decoder, decoding mirrors the ledger decoderByKey exactly: keys 0 and 1 are required and any key outside the CDDL sub_transaction_body key set is rejected rather than skipped.