Yes, there is a limit of 10k (10,000) blocks when you query logs or events with methods like eth_getLogs
or eth_getFilterLogs
. This limit applies to all EVM-based chains across all the plans.
If you try to query a larger range, it will result in an error:
eth_getLogs and eth_newFilter are limited to a 10,000 blocks range
Since making these calls use intense resources, the limit is in place to ensure maximum reliability for your calls. However, it is essential to note that we only restrict the block range. We do not cap the response size or the number of logs or set any timeout limit on your calls.
If you want to query an extensive range of blocks, we recommend breaking them down into smaller chunks of 10k or less. This approach will increase the likelihood of receiving your response faster without timeouts. And additionally, you can add concurrency to your calls, i.e., make multiple calls simultaneously.
Comments
0 comments
Article is closed for comments.