Type alias WatchBlocksParameters<TTransport, TChain, TIncludeTransactions, TBlockTag>
Type Parameters
TChain extends Chain | undefined = Chain
TIncludeTransactions extends boolean = false
TBlockTag extends BlockTag = "latest"
Type declaration
Optional
onError?: ((error) => void)
- (error): void
Returns void
The callback to call when a new block is received.