Skip to main content

NothingToProve

For the complete documentation index, see llms.txt

@midnight-ntwrk/wallet-api v5.0.0 • Readme | API


@midnight-ntwrk/wallet-api v5.0.0 / NothingToProve

Type alias: NothingToProve

type NothingToProve: {
transaction: Transaction;
type: typeof NOTHING_TO_PROVE;
};

No-Op transaction data for proving

Remarks​

balanceTransaction API allows passing already balanced and proved transaction.

NothingToProve is designed to mark this special case and can be passed further to proveTransaction endpoint without a risk of executing unnecessary proving process, and without disturbing transaction flow with supporting special cases

Type declaration​

transaction​

readonly transaction: Transaction;

Original transaction

type​

readonly type: typeof NOTHING_TO_PROVE;

Used to identify the transaction type