Type Alias WaitForTransactionReceiptParameters<TChain>

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

Type Parameters

  • TChain extends Chain | undefined = Chain | undefined

Type declaration

  • Optionalconfirmations?: number

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

    1
    
  • hash: Hash

    The hash of the transaction.

  • OptionalonReplaced?: ((response: ReplacementReturnType<TChain>) => void)

    Optional callback to emit if the transaction has been replaced.

  • OptionalpollingInterval?: number

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

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

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

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

    Time to wait (in ms) between retries.

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

  • Optionaltimeout?: number

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