Rate limit for eth_getLogs

The latest version of Moonbeam will limit the number of blocks users can query when using eth_getLogs` to a default of 1024. This is needed to ensure the performance of the RPC servers. If you run your own RPC services, this number can be overwritten with a startup parameter. For the Moonbeam Foundation RPC services, the default level of 1024 will be implemented on the following dates:

Moonriver: May 21, 2025
Moonbeam: May 28, 2025

Note that the error message is returned but with a 200. This may be fixed in a future release but for now you need to be aware of the change and update your code as needed.

Error message:
block range is too wide (maximum 1024)

We will monitor the error rate and performance of the services and may adjust this level as needed.

2 Likes