eth_newBlockFilter-Ethereum
The eth_newBlockFilter method is part of the Ethereum JSON RPC API and is used to create a filter in the node that notifies when a new block is added to the blockchain.
Supported Networks
Parameters
Request
https://go.getblock.io/<ACCESS-TOKEN>/curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "eth_newBlockFilter",
"params": [],
"id": "getblock.io"
}'wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body
{"jsonrpc": "2.0",
"method": "eth_newBlockFilter",
"params": [],
"id": "getblock.io"}Response
Response Description
Use Case
Code Example
Common Errors
Last updated
Was this helpful?