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>"
}
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>"
}
eth_getFilterChanges
to get an array of block hashes of the latest blocks.
none
— This method does not require any parameters.result
— the filter identifier (filterId
) as a hexadecimal string. This ID is used to query the filter changes or to uninstall the filter.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.The filter ID for the new block filter
The response is of type object
.