Skip to content

waitForConfirmation

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

Defined in: algokit-utils-ts/src/transaction/transaction.ts:1052

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

string

The transaction ID to wait for

number | bigint

Maximum number of rounds to wait

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