Home

Get Logs

POST
https://linea.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Changed. The block range must be ordered: fromBlock cannot be greater than toBlock. A reversed range is rejected with JSON-RPC error -32602 invalid block range params.

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.

Body

application/json

JSON-RPC request envelope.

jsonrpcstring2.0required

JSON-RPC protocol version.

methodstringeth_getLogsrequired

JSON-RPC method name.

paramsArray<object>required

Parameters array with one element: the filter object.

Show child attributes
fromBlockstring

First block included in the log query.

toBlockstring

Last block included in the log query.

addressstring

Optional emitting contract address.

topicsArray<string>

Indexed event topics used to filter or identify logs.

idintegerrequired

Identifier echoed in the response.

Response

200OK

Array of log objects matching the filter