On a blockchain, pending transactions are often visible before being included in a block (in the “mempool”). Bots watch them constantly and react within milliseconds: no human can beat them on speed.
Snipers buy in the very first block of a launch, before everyone, then sell to the next buyers. A chart that starts with a wall of sales right after launch often bears their mark.
Front-running: a bot sees your pending purchase and buys just before you, to sell higher. The sandwich attack goes further: a buy just before you (your price rises), your buy goes through at the worst price your tolerance allows, then a sale right after you. The bot pockets the gap: that is your slippage.
Protect yourself: tight slippage tolerance (the bot can only take what you allow), small orders relative to the pool, avoid frenzied moments, and, if your wallet offers it, a private-send or anti-MEV option (the value that those who order transactions can extract from them).
Examples
SNIPE-X (fictional market) : On this fictional token, your buy gets sandwiched: the bot buys before you (price goes from 1.00 to 1.04), you buy between 1.04 and 1.08, then the bot sells. Without it, you would have bought between 1.00 and 1.04.
3 April 2023: sandwich bots trapped in turn : On 3 April 2023, a malicious validator on Ethereum exploited sandwich bots by reordering transactions: the bots lost about $25 million within seconds. Two brothers were indicted in the United States in May 2024 over the attack. Lesson: transaction ordering is a professionals’ battlefield where retail traders are outgunned; limit what you expose.
Key terms
Mempool
Waiting room for transactions before they enter a block
Sniper
Bot that buys in the very first block of a launch
Sandwich attack
Buy before and sell after your transaction to capture your slippage
MEV
Value extracted by choosing the order of transactions