Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set rate limits for bundles relay.flashbots.net #595

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletions docs/flashbots-protect/additional-documentation/ratelimiting.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,32 @@
title: Rate limiting
---

In order to protect our service from abuse we have rate limits on the number of requests that can be made to Flashbots Protect RPC. Currently, the rate limits are set as follows:
In order to protect our services from abuse we have rate limits on the number of requests that can be made. Currently, the rate limits are set as follows.

- There is no rate limit for `eth_sendRawTransaction`
- `eth_call` 200/IP/5min
- `eth_getTransactionReceipt` 200/IP/5min
- `eth_getTransactionByBlockNumberAndIndex` 200/IP/5min
- `eth_getBalance` 200/IP/5min
- Other requests are capped to 600/IP/5min
## `rpc.flashbots.net` - Flashbots Protect RPC

| Method | Limit |
|--------------------------------------------|-------------------|
| `eth_sendRawTransaction` | None |
| `eth_call` | 200 / IP / 5 min |
| `eth_getTransactionReceipt` | 200 / IP / 5 min |
| `eth_getTransactionByBlockNumberAndIndex` | 200 / IP / 5 min |
| `eth_getBalance` | 200 / IP / 5 min |
| All others | 600 / IP / 5 min |

Note that this is _requests_ and not _transactions_ submitted per second. There is no limitation on the number of transactions in a request. Note that you are not required to read JSON RPC requests to send transactions to Flashbots Protect RPC.

## `relay.flashbots.net` - Bundles

| Method | Limit |
|---------------------|--------------------|
| `eth_sendBundle` | 1800 / IP / 1 min |
| `mev_sendBundle` | 1800 / IP / 1 min |
| `eth_cancelBundle` | 600 / IP / 1 min |
| `mev_simBundle` | 300 / IP / 1 min |
| `eth_callBundle` | 300 / IP / 1 min |
| All others | 120 / IP / 1 min |

## Rate limiting exceptions

If you are a wallet or application integrating with protect and you require a higher rate limit please reach out to [Shea Ketsdever](https://twitter.com/SheaKetsdever).
Expand Down
Loading