eth_newBlockFilter - Ethereum

This method builds up a node filter for notifications about new blocks. You can check out for statement changes by calling the eth_getFilterChanges method

How to Use the eth_newBlockFilter Method

Parameters

No parameters.

What you receive

QUANTITY - A filter id.

Sample

Here is a typical appliance example.

Call

curl https://eth-mainnet.rpcfast.com/?api_key=<key> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_newBlockFilter","params":[],"id":1}'

Outcome

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x8fb7f13924ab605fd23f3ddd6d193egh"
}

Last updated