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 declaration
Optional
onError?: ((error) => void)
- (error): void
Returns void
The callback to call when an error occurred when trying to get for a new block.