What Is MEV?
MEV (Maximal Extractable Value) represents profit that can be extracted by manipulating transaction ordering. When you submit a transaction, bots scan the public mempool and exploit your trade for profit.
MEV Extraction Scale
Types of MEV Attacks
Frontrunning
Bot sees your trade, submits same trade before you with higher gas. Gets better price, you get worse price. Common on large swaps.
Sandwich Attack
Bot buys before you (frontrun) → your trade executes at worse price → bot sells after (backrun). You're the meat in the sandwich.
Backrunning
Bot trades immediately after you to capture arbitrage opportunity your trade created. Less harmful than frontrunning but still extracts value.
Who Gets Attacked?
Any trade in the public mempool is vulnerable. Large swaps, NFT mints, and DeFi interactions are prime targets. Even $100 trades get sandwiched if profitable.
Protection Methods
Flashbots Protect
Sends transactions directly to validators, bypassing public mempool. Bots can't see your trade to frontrun it.
MEV-Share
Allows backrunning but shares profits with you. Get kickbacks from any MEV your trade generates while staying protected from frontrunning.
Batch Auctions (CoW Swap)
All orders in a batch execute at the same price. No transaction ordering = no frontrunning possible.
Intent-Based (UniswapX)
Express trade intent, solvers compete to fill at best price. Competition protects you from MEV.
DEXs with Protection
Setting Up Protection
Quick Setup Guide
Add https://rpc.flashbots.net to MetaMask as custom RPC
Trade on CoW Swap, 1inch Fusion, or UniswapX
Check your tx isn't in public mempool before confirmation
Interactive MEV Protection Demo
Explore MEV protection methods and their trade-offs:
Sandwich Attacks
Sandwich attacks are the most damaging form of MEV for regular users. The attacker literally "sandwiches" your transaction between two of their own trades.
Bot buys TOKEN before your swap, pushing price up
Step 2: Your Transaction
Your swap executes at the inflated price
Bot sells TOKEN immediately after, profiting from the price difference
Sandwich attacks are so prevalent that some estimates suggest 1-3% of all DEX volume is extracted through them. Your slippage tolerance directly determines how much you can lose, a 5% slippage setting allows attackers to extract up to 5% of your trade.
Private Transaction Pools
Private transaction pools send your transactions directly to block builders without exposing them in the public mempool. This is the most effective protection against frontrunning and sandwich attacks.
Settings → Networks → Add Network
Network Name: Ethereum (Flashbots)
RPC URL: https://rpc.flashbots.net
Use Flashbots network when making DEX swaps
Important: Private transactions may take slightly longer to confirm since they're only included by block builders who participate in the Flashbots network. For time-sensitive transactions, consider this tradeoff.
Continue learning
- Start hereFree crypto trading toolsFree calculators and tool roundups that convert soft intent.
- Related · 9 min readFree crypto trading tools for beginnersProfessional-grade charting with 100+ indicators, drawing tools, and multi-timeframe
- Free toolPosition size calculatorRisk-based sizing
- Next step · 25 min readBest tools for crypto tradersDiscover the best tools for crypto traders in 2026, from charting platforms and trading.
- Related · 23 min readLiquidation heatmap tools comparedCompare the best crypto liquidation heatmap tools in 2026.
- Related · 17 min readBest AI tools for crypto tradingDiscover the top AI-powered tools for crypto trading in 2026.
Popular guides
- Funded programCrypto prop firmFunded accounts up to $500K combined, coming soon. Gold, oil and indexes next.
- GuideProp firm challenge rulesTargets, daily loss, drawdown and payout math before you pay a fee.
- IndicatorThrive Suite indicatorStructure, fair value gaps, liquidity and bias on every Thrive chart.
- GuidePerp DEX comparison guideFees, leverage caps, and liquidation rules across major perp DEXs.
- GuideMarket Cipher explainedHow traders read Market Cipher B and A without treating dots as gospel.
- GuideOn-chain analysis hubFlows, holder behavior, and how to pair chain data with your journal.
Frequently Asked Questions
MEV (Maximal Extractable Value) is profit extracted by reordering, inserting, or censoring transactions in a block. Validators and searchers capture MEV through frontrunning, sandwich attacks, and arbitrage. It costs regular users through worse execution.
A sandwich attack places a buy before your trade (frontrun) and a sell after (backrun). The attacker buys first, pushing up the price. Your trade executes at the higher price. Then they sell, profiting from the price difference you created.
Flashbots Protect sends your transaction directly to validators through a private channel, bypassing the public mempool. Searchers can't see your tx to frontrun it. Your trade is included without public exposure.
MEV-Share lets searchers backrun your transaction (capturing some MEV) but shares the profit with you. You get protected from frontrunning while receiving kickbacks from any MEV your trade generates. Best of both worlds.
CoW Swap uses batch auctions (no frontrunning possible). 1inch Fusion routes through protected relays. UniswapX uses intent-based trading with solver competition. All provide better execution than standard public mempool swaps.
