[ZK Stack] - Limit number of "eth_blockNumber" calls. #731
-
Team or ProjectNo response Module Affected
Rust Version1.80.1 Operating System
Issue DescriptionWe have purchased Infura developer plan that offers 15 million credits per day. We have deployed a zksync hyperchain using Infura RPC. The problem is daily credit limit gets exhausted in less than 10 hours. Upon investigation we found out that more than 50% of credits is consumed by just Expected BehaviorSome credits should be left at the end of the day Current BehaviorAll the credits gets exhausted in less than 10 hours. Repository Link (if applicable)No response Additional DetailsNo response Prior Research
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
To address the issue of the Here are some steps you can consider:
Implementing these changes should help in managing your Infura credits more efficiently and reduce the daily consumption caused by frequent Your feedback helps us serve you better. If this fully addresses your question, please give it a thumbs up. If it doesn't, please give it a thumbs down. This will inform the community and team so we can improve our support. |
Beta Was this translation helpful? Give feedback.
-
Hello, you can monitor what component makes the most call via |
Beta Was this translation helpful? Give feedback.
Hello,
you can monitor what component makes the most call via
server_ethereum_gateway_call
counters andeth_client_direct
latency histograms. The relevant metrics are declared here. Then you can reduce number of call by dialling down poll interval for respective component.