eth_newBlockFilter - Ethereum

eth_newBlockFilter. Creates a filter in the node, to notify when a new block arrives

eth_newBlockFilter - ethereum [Value: 20CU]
Creates a filter in the node, to notify when a new block arrives.
Use cases

Use cases

  • Monitor real-time new block creation on the blockchain
  • Track newly mined blocks for network synchronization
  • Notify when new blocks are added to the chain
Constraints

Constraints

  • Requires active connection to the Ethereum node
  • Node must support block filter creation
  • Accurate response depends on node synchronization
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request POST \
     --url https://eth.drpc.org \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_newBlockFilter"
}
'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e"
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
ParametersThis method does not accept any parameters.

Response

200
Returns a filter id.

Response params

object
idinteger
jsonrpcstring
resultstring