Skip to main content

TransactionPromise

type TransactionPromise<Proven, Signed>: Promise<Transaction<Proven, Signed>> & {
"send": PendingTransactionPromise;
} & Proven extends false ? {
"prove": TransactionPromise<true, Signed>;
} : {
"proofs": Promise<Transaction<true, Signed>["proofs"]>;
} & Signed extends false ? {
"sign": TransactionPromise<Proven, true>;
} : {};

A Promise<Transaction> with some additional methods for making chained method calls into the pending value upon its resolution.

Type declaration

send()

Equivalent to calling the resolved Transaction's send method.

Returns

PendingTransactionPromise

Type parameters

Proven extends boolean

Signed extends boolean

Source

lib/mina/transaction.ts:314