⚡ Private API access, no rate limits, unlimited number of requests & more just for $50!

coins coins coins coins
eth

Ethereum (ETH)

Method: POST eth_newBlockFilter

dropdown
POST

eth_newBlockFilter

Creates a filter to retrieve new block hashes. To poll for new blocks, use eth_getFilterChanges.

Parameters

-

Request

curl --location --request POST 'https://eth.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "eth_newBlockFilter",
"params": [],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0xa4c75fe7d0624959c3e2b9cec0036b0a"
}