Home

Get logs matching filter criteria

POST
https://vinu.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns an array of logs that match the filter criteria specified in the params. The filter object supports filtering by block range, addresses, and topics.

Block range limits (changed in the 29 August 2026 upgrade).

The node applies two different caps depending on whether the query can use the log index:

  • unindexed query (neither address nor topics given): max 100 blocks. Unchanged.
  • indexed query (address and/or topics given): max 100 000 blocks, down from an effectively unlimited 999 999 999 999 999 999 before that upgrade.

Exceeding either cap returns -32000 too wide blocks range, the limit is <N>. Range is inclusive: toBlock - fromBlock must not exceed the cap. blockHash may be used instead of fromBlock/toBlock to query a single block.

Page in windows of 100 000 blocks or fewer.

Body

application/json
jsonrpcstringrequired

JSON-RPC version.

methodstringrequired

JSON-RPC method name.

paramsArray<object>required

Parameters array with one element: the filter object.

Show child attributes
fromBlockstring

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

toBlockstring

Ending block number (hex string) or "earliest", "latest", "pending".

addressstring | Array<string>

Contract address or list of addresses from which logs should originate.

topicsarray

Array of topic filters. Each topic can be a string, null, or an array of strings for OR filtering.

idintegerrequired

Request identifier.

Response

200OK

Array of log objects matching the filter

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.