post https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14/
Base API method eth_newBlockFilter
creates a new filter object that notifies subscribers when a new block is added to the blockchain. This method is particularly useful for applications that need to stay updated with the latest blocks for processing or monitoring purposes.
Get you own node endpoint today
Start for free and get your app to production levels immediately. No credit card required.
You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
none
— This method does not require any parameters.
Response
result
— the ID of the created filter. This ID is used to identify the filter in subsequent calls to methods likeeth_getFilterChanges
oreth_getFilterLogs
to retrieve updates about new blocks.
Use case
The eth_newBlockFilter
method is essential for:
- Applications that perform actions triggered by the addition of new blocks, such as updating a user interface with the latest transactions or block information.
- Services that monitor the blockchain for security or analytical purposes, needing real-time data on block additions.
- Wallets and exchanges that track new blocks to confirm transactions.
Try the eth_newBlockFilter
RPC method yourself
eth_newBlockFilter
RPC method yourself