Eth_newFilter

Create a new log filter

post

Sends a JSON-RPC request to create a new filter for tracking log events. Returns a filter ID which can be used to query logs using eth_getFilterChanges or eth_getFilterLogs.

Authorizations
api-keystringRequired
Body
jsonrpcstringRequiredExample: 2.0
methodstringRequiredExample: eth_newFilter
idintegerRequiredExample: 1
Responses
chevron-right
200

Filter ID created successfully

application/json
jsonrpcstringOptionalExample: 2.0
idintegerOptionalExample: 1
resultstringOptional

Filter identifier as a hex string

Example: 0x16
post
/
200

Filter ID created successfully

Last updated