How to swap without getting front run: what people use
What people use to swap without getting front run or sandwiched: batch auctions, intent orders, private RPCs and slippage limits, per each doc.
To swap without getting front run, people route the trade so it never sits as a plain public transaction. The options projects describe are batch auctions (CoW Protocol), signed intent orders filled by competing parties (UniswapX, 1inch Fusion), private submission (Flashbots Protect, MEV Blocker) and a slippage limit.
A sandwich attack is a front run paired with a back run: a searcher buys just before a large swap and sells just after, so the swapper gets a worse price. This guide reads each mechanism from its own official page as of 1 December 2026. It is educational, not investment advice, and no mechanism is ranked.
What are front running and sandwich attacks?
Front running is when a bot watches the public mempool, spots a profitable pending transaction and sends its own version with a higher gas price so it executes first. ethereum.org’s MEV page describes these bots as “generalized frontrunners” that copy a detected transaction, swap in their own address and test it for profit.
A sandwich works on a different trigger. The page says a searcher watches the mempool for large DEX trades, buys before the trade moves the price and sells after. It adds that users “face increased slippage and worse execution on their trades.”
The same page notes that sandwiching is riskier for the attacker than it looks, because it is not atomic. Both attacks depend on the swap being visible and ordered before it lands, which is what the mechanisms below try to change.
How does a batch auction reduce front running?
A batch auction collects orders and settles them together, so the order of transactions inside the block matters less. CoW Protocol’s docs describe intents collected offchain and auctioned to solvers, who compete by submitting bids. The protocol picks the winning combination that maximizes surplus for the orders in the auction.
The CoW Protocol docs give three reasons this limits MEV. Trades in the same token pair within a batch clear at the same price in the same direction. Users do not submit swaps directly onchain, so they are not directly exposed to public mempool MEV. Orders matched peer to peer do not touch onchain liquidity, so they avoid the AMM dynamics that MEV attacks rely on.
On limits, the batch-auctions page says that choosing the optimal combination is subject to computational constraints because the problem is combinatorial. The MEV protection page states that the winning solver must provide at least the price accepted by the user’s signed intent. That floor is what the user keeps if a solver does poorly.
What are intent and Dutch-auction orders?
An intent order is a signed message that states what you want to receive, which other parties compete to fill. You do not send a swap transaction to the public mempool yourself. The order starts at a favorable rate that decays over time, and the first filler willing to accept the current rate settles it.
UniswapX’s docs call it a “permissionless, open source, auction-based swapping protocol.” In the example Dutch auction, the order starts at a maximum price and decays down to a minimum price over time. Swappers sign a message that uses Permit2, and anyone can act as a filler. The page lists protection against MEV as a feature but does not explain the mechanism. It also says signed orders are broadcast publicly and that auction mechanisms differ by chain. See the Uniswap listing for the wider protocol.
The 1inch Business docs describe Fusion mode as a limit order with a variable exchange rate, filled by a third party called a resolver. The rate decreases from the desired rate to the minimal return amount, and multiple resolvers compete. The page says the user is protected from front-running and sandwich attacks. The help center adds that resolvers must be approved addresses that stake 1INCH and are registered to fill Fusion orders, and that expired swaps have to be resubmitted. See the 1inch listing for the product.
1inch’s docs also warn that the amount shown at quote time is not a fixed result: they say not to present either auction bound as the amount the user receives.
How does private transaction submission work?
Private submission sends your signed transaction to a block builder without exposing it in the public mempool. The searchers who copy and sandwich trades then never see it. ethereum.org lists this among its mitigations, and describes Flashbots as letting transactions avoid generalized frontrunners.
Flashbots Protect’s docs say transactions go to a private Flashbots mempool, hidden from front-running and sandwich bots. They add that transactions are included only if they do not revert, so users pay nothing for failed ones, and that users can earn refunds in some cases. You use it by adding an RPC endpoint to your wallet. The overview page does not list limitations; it points to separate pages on rate limits and stuck transactions.
MEV Blocker’s docs describe RPC endpoints that route transactions through an order flow auction of searchers and builders, and name frontrunning and sandwich attacks as the threats they guard against. The page says that backrunning opportunities created by a user’s own flow are used to give that user a rebate. It states that all features are supported on Ethereum and gives no rebate amounts.
ethereum.org’s own caveats apply here. It calls the Builder API route “a temporary solution” with higher trust assumptions, and says builders and proposers must trust MEV-Boost relays. It also describes permissioned mempools as a concerning trend that would reduce Ethereum’s permissionlessness.
Does a slippage limit protect a swap?
A slippage limit bounds the damage but does not hide the trade. Uniswap’s swaps page says slippage tolerances “establish a margin of change acceptable to the user beyond price impact.” If the execution price falls outside that range, the transaction fails.
For direct pool swaps, the same page describes amountOutMinimum for exact-input swaps and amountInMaximum for exact-output swaps as the user-level controls. The page does not mention MEV or front running, so it does not claim the limit prevents an attack. A sandwich can still extract value up to the tolerance you set, so a tighter limit leaves less room, and may also make a legitimate swap fail when the price moves.
1inch’s help center says that in Fusion the price cannot move below your slippage tolerance, and the auction ends if the price reaches it. So the slippage setting also works as the auction floor in that product.
Which mechanism covers what?
The mechanisms act at different points in a swap’s life, so their gaps differ. Read the table as a description of what each project’s own page says, not a score.
| Mechanism | What it changes | What it does not cover (per the docs) | Example |
|---|---|---|---|
| Batch auction with solver competition | Orders settle together at uniform clearing prices; no direct swap in the public mempool | Optimal selection is subject to computational constraints; the winning solver only has to meet the price in your signed intent | CoW Protocol |
| Intent order with Dutch auction (fillers) | A signed order replaces the swap transaction; the rate decays until a filler takes it | Signed orders are broadcast publicly (UniswapX page); mechanism not explained on the overview; quote bounds are not the amount you receive (1inch) | UniswapX, 1inch Fusion |
| Private transaction submission | The transaction skips the public mempool and goes to builders | Ethereum-focused; overview pages do not promise every outcome; ethereum.org notes trust assumptions in the builder path | Flashbots Protect, MEV Blocker |
| Slippage limit | The swap fails if the price lands outside your range | Does not hide the transaction; the page does not claim it stops front running | Uniswap swap settings |
What should I check before choosing?
Look at the specifics of each route rather than the label on the button. Each item below can be confirmed on the project’s own pages.
- Which chains the mechanism covers. MEV Blocker’s page says features are supported on Ethereum; UniswapX’s page says auction types differ by chain.
- Who fills or settles the order, and how they are admitted. 1inch’s help center describes approved, staked resolvers.
- What price floor you are signing. CoW’s signed intent price and the minimal return amount in Fusion are the numbers that bind.
- Whether a failed or expired swap costs you gas. UniswapX and 1inch both say it does not, in the pages cited above.
- Whether the tool adds a trust step. ethereum.org notes that MEV-Boost relays and the Builder API carry trust assumptions.
Previewing the trade first is a separate habit: see how to simulate a transaction before signing. The decentralized exchanges category lists the venues covered on this site.
Which option fits which situation?
Each route has a different shape, and the docs show where each one stops. If your wallet only lets you swap through a pool contract, a slippage limit is the control you have. If you can use an intent or auction venue, you give up direct control of the transaction in exchange for a competition over fills, and you accept the fill price rules in that venue’s docs. If you want to keep using your usual swap interface on Ethereum, a private RPC changes where the transaction goes without changing the venue.
None of these pages claims to remove MEV. ethereum.org calls mitigation a core area of research, and the project pages describe reduced exposure in their own words. Read the current docs before a large trade, because the pages above changed locations during this check.
Questions
- Can I fully avoid being front run on a swap?
- No page opened for this guide claims that. ethereum.org calls MEV mitigation a core area of research, and each project below describes how it reduces exposure, not how it removes it.
- Does a private RPC stop sandwich attacks?
- Flashbots Protect's docs say transactions go to a private mempool where they are hidden from front-running and sandwich bots. MEV Blocker's docs name the same two attacks. Both are Ethereum tools and their docs do not promise every outcome.
- Is a low slippage tolerance enough?
- It caps how far the price can move against you, and the transaction fails if the price lands outside the range. Uniswap's docs describe it as a margin acceptable beyond price impact. It does not hide the transaction from searchers.
- Do intent-based swaps need gas from the user?
- UniswapX's docs say swaps are gasless with no cost for failed swaps, and 1inch's docs say the resolver pays the onchain gas for Fusion mode. Neither page explains the fee economics in detail.
Sources
- Maximal extractable value (MEV), ethereum.orgaccessed
- Batch auctions, CoW Protocol docsaccessed
- MEV protection, CoW Protocol docsaccessed
- UniswapX overview, Uniswap developer docsaccessed
- Swaps, Uniswap developer docsaccessed
- 1inch intent-based swap (Fusion mode), 1inch Business docsaccessed
- What is 1inch Fusion and how does it work, 1inch help centeraccessed
- Flashbots Protect overview, Flashbots docsaccessed
- MEV Blocker docsaccessed