Skip to content

waitForConfirmation

waitForConfirmation(transactionId, maxRoundsToWait, algod): Promise<PendingTransactionResponse>

Defined in: src/transaction/transaction.ts:133

Wait until the transaction is confirmed or rejected, or until timeout number of rounds have passed.

string

The transaction ID to wait for

Maximum number of rounds to wait

number | bigint

AlgodClient

An algod client

Promise<PendingTransactionResponse>

Pending transaction information

Throws an error if the transaction is not confirmed or rejected in the next timeout rounds