Start typing to search this publication.
crypto.news logo crypto.news
Open menu
crypto.news logo

Subscribe to crypto.news

Get new posts delivered straight to your inbox.

MEV protection RPC vs public RPC for swaps: How routing differs

crypto.news avatar crypto.news
4 min read

An MEV protection RPC versus a public RPC for swaps changes who can see your signed trade before it enters a block. On Ethereum mainnet, a conventional public RPC broadcasts the swap to the public mempool, while a protection RPC routes it privately toward block builders; Chainlist helps you confirm the network and its RPC details when choosing an endpoint. Bots can sandwich a swap only if they see it before inclusion, so private routing matters most for sizable Ethereum mainnet trades.

Private routing matters most for exposed Ethereum swaps

Private routing matters most when a swap offers a bot enough potential profit to justify targeting it. A sandwich attack places a buy before your swap and a sell after it, profiting as your trade moves the price. Slippage tolerance is the price movement you agree to accept; a looser limit gives the attack more room. A larger swap can also move a pool’s price further.

  • Mempool visibility: A public broadcast lets anyone watching Ethereum’s mempool inspect the pending swap. Flashbots Protect sends transactions through a private mempool; MEV Blocker uses a private route that shares opportunities with selected searchers and builders under its rules. The trade becomes public once included. Flashbots documentation and MEV Blocker documentation describe these routes.

  • Sandwich exposure: Public visibility gives bots a chance to position trades around yours. Private routing sharply reduces that opportunity, but the relay operator and its builder partners must handle the transaction as promised.

  • Inclusion speed: Public broadcast reaches the wider network for inclusion. A private swap may wait longer if its route misses the builder of the winning block. Speed depends on the service’s builder reach and the transaction’s fees.

  • Failed-swap cost: A public swap that executes and reverts still consumes gas. Flashbots Protect screens out reverting transactions before inclusion, so those dropped swaps cost no gas. MEV Blocker’s default endpoint does not offer that protection; its /noreverts option does.

  • Chain coverage: Flashbots Protect uses rpc.flashbots.net and MEV Blocker uses rpc.mevblocker.io for Ethereum mainnet. An RPC must support the chain you are swapping on; a familiar endpoint name does not make it interchangeable across networks.

Arbitrum One and Base change the calculation. Their transactions go to a sequencer, which orders them without Ethereum’s public mempool broadcast. That removes the usual window in which a mainnet mempool bot spots a swap and builds a sandwich around it. It does not guarantee an ideal execution price: pool liquidity, price movement, and your slippage limit still affect the result. Arbitrum and Base describe their sequencer routes.

Choose an MEV protection RPC for a sizable Ethereum mainnet swap, especially when the pool is thin or the required slippage limit is loose. Choose a public RPC for a small swap on Arbitrum One or Base when its endpoint is reliable. Confirm the chain ID in Chainlist, then check the wallet or RPC provider’s transaction-routing policy: the endpoint’s label alone cannot tell you whether a swap is broadcast publicly.

Protection RPCs generally add no separate access charge, and setup means selecting the correct Ethereum endpoint in your wallet.

Does an MEV protection RPC cost anything?

An MEV protection RPC generally has no extra service fee, but an included swap still pays network gas and any swap fees. Flashbots Protect screens out reverting transactions; MEV Blocker offers that feature on selected endpoints, including /noreverts. MEV Blocker’s documentation describes its service as free to use.

How do I add Flashbots Protect to MetaMask?

Add a network manually in MetaMask, enter Flashbots Protect as its name, rpc.flashbots.net/fast as the RPC URL, chain ID 1, and ETH as the currency, then save and select it. Keep that RPC selected until a pending protected transaction confirms: switching early may cause MetaMask to resend it publicly. Flashbots’ setup instructions give the current fields.

Wallet settings, slippage and chain support affect the choice

Wallet settings, slippage and chain support affect the choice because they determine how the swap is sent and what price it may accept.

Does MetaMask have built-in MEV protection?

Yes. MetaMask protects eligible Ethereum mainnet transactions through its Infura RPC and offers Smart Transactions for supported networks. A custom RPC can override Smart Transactions, so review the selected network and transaction setting before assuming protection is active. MetaMask explains the setting.

What slippage tolerance should I set for a swap?

Set the tightest tolerance that still lets the quoted trade execute under expected price movement. Compare the quote’s minimum received amount with what you are willing to accept, especially for a large swap or a thin pool. If a trade fails, refresh the quote before widening the limit; private routing does not prevent ordinary price changes.

Do MEV protection RPCs work on BNB Smart Chain?

BNB Smart Chain has its own private RPC and wallet protection options, but the Flashbots Protect and MEV Blocker endpoints above serve Ethereum mainnet. Use a service that explicitly supports BNB Smart Chain and check its routing and revert policy. BNB Chain documents its private RPC options.

Subscribe to crypto.news