Home

Create a new log filter

POST
https://vinu.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Creates a filter that collects logs matching the given criteria. Poll it with eth_getFilterChanges for logs seen since the previous poll, or read the full matching set with eth_getFilterLogs. Remove it with eth_uninstallFilter when you are done.

The returned id is a 16-byte hex string with leading zeros stripped, so it is not always 34 characters long - treat it as an opaque string and do not left-pad or normalise it.

Requests to this endpoint are balanced across a pool of nodes, and a filter is only visible to the node that created it. For anything that must be reliable, poll with an explicit block range instead of a filter.

Changed in the 29 August 2026 network upgrade. Reading this filter back through eth_getFilterLogs is capped at 100 000 blocks when it carries address and/or topics, down from no practical limit.

Body

application/json
jsonrpcstringrequired
methodstringrequired
paramsArray<object>required

Array with one object describing the filter options.

Show child attributes
fromBlockstring

Starting block number or tag ("latest", "earliest", "pending").

toBlockstring

Ending block number or tag.

addressstring | Array<string> | null
topicsArray<string | Array<string>> | null

Array of topic filters. Topics are 32-byte hashes identifying events.

Show child attributes
One of
string
Array<string>
idintegerrequired

Response

200OK

Filter ID created successfully

405Method Not Allowed

Method not served by this endpoint. The body is the plain-text string Method Not Allowed, not JSON.

422Unprocessable Entity

Missing API key - the api-key header was absent. The body is the plain-text string Missing API_key, not JSON.