Sandwich Attack
A type of MEV where someone puts transactions before AND after yours to profit. They 'sandwich' your trade to extract value.
Example
A bot seeing your large buy, buying first to raise the price, letting your trade execute at a worse price, then selling.
Related Terms
Advanced Concepts
βοΈHow It Works
- 1
Detection
Attacker's bot monitors the mempool and spots your pending trade
- 2
Front-run
Bot submits a buy order BEFORE yours with higher gas to execute first
- 3
Your Trade
Your trade executes at a worse price because the bot moved the market
- 4
Back-run
Bot immediately sells, profiting from the price difference you caused
πKey Numbers
1-3%
Avg Loss per Attack
of trade value
$1M+
Daily Sandwich Profits
extracted from users
1,000+
Attacks per Day
on Ethereum mainnet
πGetting Started
- 1Use MEV protection services like Flashbots Protect or MEV Blocker
- 2Set lower slippage tolerance (0.5-1%) to make attacks unprofitable
- 3Break large trades into smaller chunks across time
- 4Use DEX aggregators with private transaction options
- 5Consider trading on L2s where MEV is less prevalent