POST
/
3997273fc956a67dc6982384500e669e
curl --request POST \
  --url https://ronin-mainnet.core.chainstack.com/3997273fc956a67dc6982384500e669e \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_newBlockFilter",
  "params": []
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}

Ronin API method that creates a new filter in the node. This filter allows applications to receive notifications when new blocks are added to the blockchain. Once the filter is created, the application can periodically use eth_getFilterChanges to get an array of block hashes of the latest blocks.

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 filter identifier (filterId) as a hexadecimal string. This ID is used to query the filter changes or to uninstall the filter.

Use case

The eth_newBlockFilter method is particularly useful for applications that need to stay synchronized with the latest state of the blockchain, such as wallets, block explorers, or decentralized applications (DApps) that react to new blocks. It provides a more efficient way to monitor the blockchain for new blocks compared to polling the latest block number.

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:eth_newBlockFilter
params
any[]

Response

200 - application/json
The filter ID for the new block filter
jsonrpc
string
id
integer
result
string