Skip to main content

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

Successful Response