Type alias WatchBlockNumberParameters<TTransport>
WatchBlockNumberParameters<TTransport>: { onBlockNumber: OnBlockNumberFn; onError?: ((error) => void); } & (GetTransportConfig<TTransport>["type"] extends "webSocket" ? { emitMissed?: never; emitOnBegin?: 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 a new block number is received.