Skip to main content

kaia_getLogs

POST 

/

Retrieves logs matching the specified filter criteria. Query directly with filter conditions in the request without creating a separate filter and querying by filter ID.

Is the response taking a long time? Response time may vary based on block range!

Specifying a wide block range or including blocks with many events may cause response delays or timeouts.

For faster responses, consider the following recommendations:

  • Keep the fromBlock ~ toBlock range to 1000 blocks or fewer.
  • When using latest for blockTag, the exact block number may not be known internally, which can increase response time.

In that case, query the latest block number with kaia_blockNumber first, then specify it explicitly.

Request

Responses

Successful Response