Home

Filter traces by criteria

POST
https://eth-archive.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

The trace_filter method returns traces matching specified filter criteria.

This method allows filtering traces by block range, fromAddress, toAddress, and other criteria. It's useful for finding specific transactions or calls across multiple blocks.

Body

application/json

The trace_filter method returns traces matching specified filter criteria.

This method allows filtering traces by block range, fromAddress, toAddress, and other criteria. It's useful for finding specific transactions or calls across multiple blocks.

Request payload for Filter traces by criteria.

jsonrpcstring2.0required

JSON-RPC version identifier

methodstringtrace_filterrequired

The method to be invoked

idinteger | stringrequired

Request identifier for matching responses

paramsArray<object>required

Array containing filter object

Show child attributes
fromBlockstring

Starting block number for filtering (hex encoded)

toBlockstring

Ending block number for filtering (hex encoded)

fromAddressArray<string>

Array of sender addresses to filter by

toAddressArray<string>

Array of recipient addresses to filter by

afterinteger

Offset after which traces should be returned

countinteger

Number of traces to return

Response

200OK

Successful trace filter response

400Bad Request

Invalid request parameters

401Unauthorized

Unauthorized: API key is present but rejected by the NOWNodes gateway.

405Method Not Allowed

Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.

422Unprocessable Entity

Missing API key. The NOWNodes gateway returns plain text for this error.

500Internal Server Error

Internal server error