Avoid rate limiting
Infura applies rate limiting account-wide after exceeding the daily request limit or the number of requests per second.
For rate limiting designed to protect our service in the event of an attack, Infura uses a combination of:
- Source IP address.
- JSON-RPC method.
- Project ID.
Infura is constantly adjusting rate limits based on overall usage and possible abuse.
Typically only aggressive use should experience rate limiting.
Customers running into rate limits are encouraged to contact us. We'll work with you to determine how best to avoid rate limits.
Requests for archive data are more expensive and are therefore subject to different rate limits. Find out more.
When you're rate limited, your JSON-RPC responses have HTTP status code
They also contain a JSON-RPC error response with the reason for the rate limit. For example, if you use all the allowed daily requests:
"message": "daily request count exceeded, request rate limited",
Or if you submit a higher number of requests per second than the maximum allowed limit:
"message": "project ID request rate exceeded",
dataarray contains three fields related to rate limits:
current_rps- The current rate per second determined by Infura.
allowed_rps- The current allowed rate which you should stay under.
backoff_seconds- The suggested amount of time to wait before sending more requests.
The value for
allowed_rpschanges depending on overall network conditions; therefore consider the value for
current_rpsvalid and up-to-date.
We recommend pausing JSON-RPC activity for the time value in
If you're consistently rate limited, consider these work-arounds:
- Cache Ethereum data locally. Barring rare deep reorganizations of the chain, blocks more than a couple of blocks below the head of the chain can be cached indefinitely. Ask for the data once then keep it locally.
- Limit RPCs at dapp startup. Likewise, limit the number of RPCs your dapp calls immediately at startup. Only request data as the user accesses that portion of the dapp, and cache anything from older blocks for next time.
- Don't poll Infura in a tight loop. New blocks come roughly every 15 seconds, so requesting new data at a faster rate usually doesn't make sense. Consider using
eth_subscribeto be notified when new blocks are available.
You can have Infura notify you when you're near your daily limit by checking the box for Email Notifications under the Accounts tab. Infura sends emails when your daily requests reach 75%, 85%, and 100% of the allowed limit.