Function waitForConfirmation

  • Wait until a transaction has been confirmed or rejected by the network, or until 'waitRounds' number of rounds have passed.

    Parameters

    • client: Algodv2

      An Algodv2 client

    • txid: string

      The ID of the transaction to wait for.

    • waitRounds: number

      The maximum number of rounds to wait for.

    Returns Promise<PendingTransactionResponse>

    A promise that, upon success, will resolve to the output of the pendingTransactionInformation call for the confirmed transaction.

Generated using TypeDoc