Function waitForConfirmation

  • 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.

    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<Record<string, any>>

Generated using TypeDoc