Type alias WatchPendingTransactionsParameters<TTransport>

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

Type Parameters

Type declaration

  • Optional onError?: ((error) => void)

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

      • (error): void
      • Parameters

        • error: Error

        Returns void

  • onTransactions: OnTransactionsFn

    The callback to call when new transactions are received.