Type alias WatchPendingTransactionsParameters<TTransport>

WatchPendingTransactionsParameters<TTransport>: {
    onError?: ((error) => void);
    onTransactions: OnTransactionsFn;
} & (GetTransportConfig<TTransport>["type"] extends "webSocket"
    ? {
        batch?: never;
        poll?: false;
        pollingInterval?: never;
    } | PollOptions & {
        poll?: true;
    }
    : PollOptions & {
        poll?: true;
    })

Type Parameters

Type declaration

  • Optional onError?: ((error) => void)
      • (error): void
      • The callback to call when an error occurred when trying to get for a new block.

        Parameters

        Returns void

  • onTransactions: OnTransactionsFn

    The callback to call when new transactions are received.

Generated using TypeDoc