- Preparing search index...
- The search index is not available
algosdk
Function waitForConfirmation
- waitForConfirmation(client: Algodv2, txid: string, waitRounds: number): Promise<Record<string, any>>
-
Parameters
-
-
txid: string
-
waitRounds: number
Returns Promise<Record<string, any>>
Wait until a transaction has been confirmed or rejected by the network, or until 'waitRounds' number of rounds have passed.
Returns
A promise that, upon success, will resolve to the output of the
pendingTransactionInformation
call for the confirmed transaction.