Skip to main content

kaia_newFilter

POST 

/

Creates a filter to query logs matching the specified criteria and returns the filter ID. The filter ID is used with kaia_getFilterLogs and kaia_uninstallFilter.

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