Type Alias WatchPendingTransactionsParameters<TTransport>

WatchPendingTransactionsParameters<TTransport>: {
    onError?: ((error: Error) => void);
    onTransactions: OnTransactionsFn;
} & GetPollOptions<TTransport>

Type Parameters

Type declaration

  • OptionalonError?: ((error: Error) => void)

    The callback to call when an error occurred when trying to get for a new block.

      • (error): void
      • Parameters

        Returns void

  • onTransactions: OnTransactionsFn

    The callback to call when new transactions are received.