Type alias WaitForTransactionReceiptParameters<TChain>

WaitForTransactionReceiptParameters<TChain>: {
    confirmations?: number;
    hash: Hash;
    onReplaced?: ((response) => void);
    pollingInterval?: number;
    retryCount?: WithRetryParameters["retryCount"];
    retryDelay?: WithRetryParameters["delay"];
    timeout?: number;
}

Type Parameters

  • TChain extends Chain | undefined = Chain | undefined

Type declaration

  • Optional confirmations?: number

    The number of confirmations (blocks that have passed) to wait before resolving.

    Default

    1
    
  • hash: Hash

    The hash of the transaction.

  • Optional onReplaced?: ((response) => void)

    Optional callback to emit if the transaction has been replaced.

  • Optional pollingInterval?: number

    Polling frequency (in ms). Defaults to the client's pollingInterval config.

    Default

    client.pollingInterval
    
  • Optional retryCount?: WithRetryParameters["retryCount"]

    Number of times to retry if the transaction or block is not found.

    Default

    6 (exponential backoff)
    
  • Optional retryDelay?: WithRetryParameters["delay"]

    Time to wait (in ms) between retries.

    Default

    ({ count }) => ~~(1 << count) * 200 (exponential backoff)

  • Optional timeout?: number

    Optional timeout (in milliseconds) to wait before stopping polling.