curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_newBlockFilter",
"id": 1
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_newBlockFilter",
"id": 1
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
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.
none
— This method does not require any parameters.result
— the ID of the created filter. This ID is used to identify the filter in subsequent calls to methods like eth_getFilterChanges
or eth_getFilterLogs
to retrieve updates about new blocks.eth_newBlockFilter
method is essential for:
The ID of the created block filter
The response is of type object
.
Was this page helpful?