New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image
etc

ETC

POST

GET

chevron-right

Last updated on January 1, 1970

1 min read

Method eth_newFilter undefined ()
connect with JSON-RPC protocol

eth_newFilter

info-circle-fill

Creates a log filter. To poll for logs associated with the createdfilter, use eth_getFilterChanges. To get all logs associated with thefilter, use eth_getFilterLogs.

Parameters

Object - None

Filter options object.

Request

curl --location --request POST 'https://etc.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "eth_newFilter",
"params": [{"fromBlock": "earliest", "toBlock": "latest", "topics": []}],
"id": "getblock.io"}'

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x3df538d9a3093afae00756ee16412677"
}
banner icon

Start Building with GetBlock RPCs for Free