Skip to Content
HTTP API

eth_getLogs

Return logs for a filter object within the allowed request shape. The hosted route enforces a maximum explicit fromBlock/toBlock span of 10000 blocks.

Methodeth_getLogs
Route familyEVM
StageGeneral availability

Available under EVM HTTP API. Use the chain-family pages for route switching and the method pages for exact request and response shapes.

Access patterns

PatternValueNotes
Compatibility URL (Recommended)POST /v1/{EVM_CHAIN}/{API_KEY}Public RPC onboarding uses one URL that already carries the API key. This fits mainstream wallets, RPC clients, and infrastructure tooling that expect one endpoint string.
Internal raw routePOST /rpc/{EVM_CHAIN}The gateway rewrites compatibility URLs to internal raw RPC routes. This internal route is implementation detail, not the preferred public onboarding form.

Examples

Compatibility URL example
curl -X POST "{RPC_HTTP_BASE_URL}/v1/ethereum/<api_key>" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "eth_getLogs", "params": [ { "fromBlock": "0x1", "toBlock": "0x2710", "address": "0x0000000000000000000000000000000000000001" }]}'
Try send

Try eth_getLogs

Send one direct browser request to the current hosted gateway base URL so the real network request is visible in devtools. The API key is only stored locally when you provide one.

Request fields

JSON-RPC request body

FieldTypeRequiredNotes
jsonrpcstringRequiredJSON-RPC version. Use `2.0`.
idnumber | string | nullRequiredClient-supplied request identifier echoed back in the response.
methodstringRequiredMethod name. Use `eth_getLogs`.
params[0].fromBlock / params[0].toBlockhex quantityRequiredWhen both are explicit block numbers, the current hosted route allows a maximum span of `10000` blocks.
params[0].addressstring | string[]RequiredOptional contract address filter.

Response fields

JSON-RPC response body

FieldTypeNotes
jsonrpcstringJSON-RPC version.
idnumber | string | nullRequest identifier echoed from the request.
resultarrayReturned log entries when the request succeeds.
errorobjectStandard JSON-RPC error object. Oversized ranges return code `-32012` with message `eth_getLogs query exceeds max block range 10000`. Request correlation stays on HTTP headers such as `X-Trace-ID` and `X-Request-ID`.