eth_newBlockFilter

The eth_newBlockFilter method creates a filter in the node to notify when a new block arrives. This method returns a filter ID that can be used with eth_getFilterChanges to poll for new blocks. It's particularly useful for applications that need to react to new blocks in real-time without having to continuously poll the blockchain.


Parameters

This method does not require any parameters.

Return Object

The method returns a filter ID as a hexadecimal string that can be used with eth_getFilterChanges to poll for new blocks.

Request Example
Request
Response Example
Response

Share on
Share on FacebookShare on XShare on LinkedIn
Did you find this page useful?