[Feature] Set `GRAPH_ETH_GET_LOGS_MAX_CONTRACTS` Per Provider
Description
Currently, there is a limitation in configuring a Graph node to restrict the number of eth_getLogs requests per Provider. This limitation can lead to the occurrence of the following error:
Trying again after eth_getLogs RPC call for block range: [52590344..52590344] failed (attempt #10) with result Err(Rpc(Error { code: InvalidParams, message: "2149 address and topic selectors specified in query, but only 1000 are allowed", data: None })), component: BlockStream
This error is generated when an RPC provider has a predefined limit on the number of contracts that can be requested in a single call.
cc @leoyvens
Are you aware of any blockers that must be resolved before implementing this feature? If so, which? Link to any relevant GitHub issues.
No response
Some information to help us out
- [ ] Tick this box if you plan on implementing this feature yourself.
- [X] I have searched the issue tracker to make sure this issue is not a duplicate.
Thanks @itsjerryokolo, @leoyvens do you think this should be set at the provider level?
Yes I think so, the env var would be a default if the provider hasn't set anything
Looks like this issue has been open for 6 months with no activity. Is it still relevant? If not, please remember to close it.