Skip to content
Not financial advice. Most memecoins go to zero. 18+.
memecoinguru

Sandwich attack meaning: what it is in crypto

Sandwich attack: A sandwich attack is an MEV trade where a bot buys just before your swap and sells just after it, so you get a worse price and the bot keeps the difference.

Updated Oct 12, 2026

Key takeaways

  • A sandwich attack places a bot’s buy before your swap and its sell after it; your trade sits in the middle, like the filling of a sandwich.
  • You pay a higher price on your buy, up to your slippage tolerance, and the bot keeps the difference.
  • Large swaps in small memecoin pools with a high slippage tolerance are the easiest targets.

A sandwich attack is an MEV trade where a bot buys a token just before your swap and sells it just after. Your swap pushes the price up between the two bot trades, so you pay more and the bot keeps the difference. Memecoin buys with a high slippage tolerance are common targets.

How a sandwich attack works

Ethereum.org describes the method: a searcher “will watch the mempool for large DEX trades”, buys before the large trade, and sells after it at the higher price (Ethereum.org (opens in a new tab)). The same idea applies on Solana, where bots compete for the position next to large swaps.

Example: you buy 5 SOL of a memecoin with a 20% slippage tolerance in a small pool.

  1. A bot buys first and pushes the price up close to your limit.
  2. Your buy fills at that higher price.
  3. The bot sells into the price that your buy created.

You end up with fewer tokens, and the bot takes the gap as profit.

Why it matters for traders

The tolerance you set is the maximum a bot can take from you. Keep it low, split large orders, and prefer routes with MEV protection: Jito, for example, offers sandwich mitigation for Solana transactions (Jito docs (opens in a new tab)). Read more on MEV and compare trading tools in our memecoin trading platforms hub.

Related terms

Sources

  1. Ethereum.org: Maximal extractable value (MEV) (opens in a new tab) · checked Oct 12, 2026
  2. Jito docs: Low-latency transaction send (opens in a new tab) · checked Oct 12, 2026

Frequently asked questions

A sandwich attack is a form of MEV. A bot sees your pending swap, buys the same token just before it, and sells just after it. Your swap pushes the price up between the two bot trades, so the bot profits and you get a worse fill.