By MEV DAO Research
Saw an extra transaction sitting next to your swap in the same block? Might just be a sandwich. Might be a backrun. They look alike on Etherscan, and they are not the same thing.
A sandwich comes out of your fill. A backrun doesn't. Here's how to check with plain Etherscan, and what, if anything, is worth changing after you find one.
How the two trades differ
On a public RPC your swap sits in the mempool for a few seconds. A sandwich bot reads the pool, the size and your slippage, buys the same token just before you, lets your swap fill worse (still inside your minimum out, so the wallet often stays quiet), and sells just after. Two extra transactions, same bot, one on each side.
A backrun has no front half. Your swap happens as it would have. After it, the pool is a little off versus the rest of the market, and a bot arbs that gap, usually against another pool. Your amount out does not change.
How to check your own swap
No special tools needed. Etherscan does the job.
Open your swap on Etherscan. Note the block number and where your transaction sits in it, plus the pair and the direction.
Click into the block and look at the transaction list.
Check the transaction right before yours. Same pair, same direction, usually from the same address or contract? That's the front of a sandwich.
Then open the one right after yours. If it sells about what the one before bought, and it's the same bot, you've got both sides. If the one before is unrelated and the one after hops from one pool to another, that's a backrun.
If the block has a lot of aggregator hops, or two bots landed at once, I don't try to name it. I just go to the next hash.
EigenPhi will flag a lot of this if you paste in a hash, which is faster when you want to scan a stack of old trades. I still look at the two neighbours myself.
Ballpark a sandwich like this: what would the pool have given you just before the front buy, minus what you actually got. That's about what it took. A backrun shouldn't move that number.
What I'd change, and what I wouldn't
If you found a sandwich, fix the usual things. Lower slippage to the lowest number that still lets the trade through. On liquid pairs that's often 0.1 to 0.5 percent. Point the wallet at a private RPC. Flashbots Protect and MEV Blocker are the two free options most people use; they are not identical, especially on refunds. For a larger trade, an intent-based DEX like CoW Swap or UniswapX is worth a look, because the order never sits in the mempool as a normal swap.
If you found a backrun, the picture depends on how you sent the swap. On the public mempool that leftover flow is still a gas fight, and the builder keeps most of it. Send the same swap through Flashbots Protect and searchers only get a hint, often the pool, usually not the size. They bid to land right behind you, and a large part of a winning bid can be refunded to you. So that after-trade can be the thing that earned you a refund, not something to panic about.
I'd still keep slippage tight. A private RPC only hides you from the public mempool. Set 15 percent on a pool your own trade can move and you can wreck the price without any sandwich involved.
The people bidding on that leftover flow are searchers. If you want the longer version of what they do all day, and how they get paid, it's on our blog: What is an MEV searcher, what they do, and how they get paid.
Who actually shows up in the block
Bots are picky. Gas on one or two transactions, usually a builder tip too, so they skip trades that don't leave room. Thin pools. Big slippage. A memecoin buy at 5 to 15 percent is a gift. Small ETH/USDC swap, deep pool, 0.5 percent slippage? Usually not worth their gas. 4 ETH into some brand new token at 10 percent? You'll see a lot more of both trades there.
A quick check before the next swap
Is the pool deep enough for this size? If not, split it.
Is slippage actually as low as it can be?
Is the wallet on a private RPC?
If a later transaction shows up next to this swap, did I check both neighbours before calling it a sandwich?
None of this takes long. Most of it is just looking at two rows on Etherscan. Sandwich bots aren't going away, but it helps to know which of those extra transactions actually cost you something.
MEV DAO Research writes about MEV, wallet safety and Ethereum trading at mevdao.org.
