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.
Parameters
Section titled “Parameters”transactionId
Section titled “transactionId”string
The transaction ID to wait for
maxRoundsToWait
Section titled “maxRoundsToWait”Maximum number of rounds to wait
number | bigint
An algod client
Returns
Section titled “Returns”Promise<PendingTransactionResponse>
Pending transaction information
Throws
Section titled “Throws”Throws an error if the transaction is not confirmed or rejected in the next timeout rounds