eth_getLogs
POST/
Returns logs matching the specified filter criteria. Unlike filter-based methods, filter conditions are passed directly in the request without creating a filter first.
Response taking too long? Response time may increase with block range!
Specifying a wide block range or including blocks with many events can cause response delays or timeouts.
For faster responses:
- Keep the fromBlock ~ toBlock range to 1000 blocks or less.
- When using blockTag "latest", the response may be slower since the exact block number is not known internally.
In that case, use eth_blockNumber to get the latest block number and specify it explicitly.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 405
- 408
- 409
- 413
- 414
- 429
- 500
- 503
Successful Response
Bad Request
Unauthorized
Forbidden
Not Found
Method Not Allowed
Request Timeout
Conflict
Payload Too Large
URI Too Long
Too Many Requests
Internal Server Error
Service Unavailable