Transaction
@midnight-ntwrk/ledger v3.0.2 • Readme | API
@midnight-ntwrk/ledger v3.0.2 / Transaction
Class: Transaction
A Midnight transaction, consisting a section of ContractActions, and a guaranteed and fallible Offer.
The guaranteed section are run first, and fee payment is taken during this part. If it succeeds, the fallible section is also run, and atomically rolled back if it fails.
Constructors
new Transaction()
private new Transaction(): Transaction
Returns
Properties
contractCalls
readonly contractCalls: ContractAction[];
The contract interactions contained in this transaction
fallibleCoins
readonly fallibleCoins: undefined | Offer;
The fallible Zswap offer
guaranteedCoins
readonly guaranteedCoins: undefined | Offer;
The guaranteed Zswap offer
mint
readonly mint: undefined | AuthorizedMint;
The mint this transaction represents, if applicable
Methods
eraseProofs()
eraseProofs(): ProofErasedTransaction
Erases the proofs contained in this transaction