Sandwich Bot Crypto: A Plain-English Guide to How These Bots Work
The Slippage Desk explains what a sandwich bot does on a decentralised exchange, what it costs to run, where it fails and what it means for ordinary traders.
A sandwich bot in crypto is automated software that watches pending transactions on a blockchain, spots a large swap on a decentralised exchange, and places one trade just before it and one just after. The victim’s own trade moves the price, the bot sits on both sides of that move, and the difference, minus fees, is the bot’s gross result. That is the whole mechanism, and everything else in this guide is about the details: how the ordering is achieved, what it costs, how often it goes wrong and who pays.
It helps to be blunt about the economics. The profit does not come from the market in some abstract sense. It comes from the slippage a trader was willing to accept. Set a loose limit and you leave room for a bot to fit its trades inside it. That is why the same topic matters to two audiences: people who operate bots, and people who just want to swap tokens without being taxed by one.
For operators, the practical question is what a product actually offers. CryptoMEV Bot’s sandwich bot page describes software that scans for large swaps with high slippage tolerance, simulates whether the expected slippage profit exceeds the gas cost of the two transactions, and then executes. It says the software is non-custodial and lists a Retail Trader licence at $1,999 one-time and an Enterprise tier from $50,000. It gives no profit figures, and neither do we. If your interest is Solana specifically, its Solana MEV bot page covers Jito bundle support, and its short explainer on what an MEV bot is puts sandwiching in the wider family of MEV strategies.
Start where your question starts.
- New to the idea? Read what a sandwich attack is and then how a sandwich bot works step by step.
- Thinking of running one? Compare what a sandwich bot costs, whether sandwich bots are profitable and whether to build or buy. Read the risks before any of them.
- Worried about the legal side? See whether sandwich trading is legal. The honest answer is that it depends on jurisdiction and facts.
- A trader who wants to stay safe? Use the guides on avoiding sandwich attacks and checking whether you were sandwiched.
Two things to keep in mind throughout. First, this is a competitive, adversarial niche: many operators lose money to failed bundles, gas and rival bots, and no honest source can promise otherwise. Second, rules on market manipulation and on-chain trading are unsettled and changing. Nothing here is financial or legal advice, and every claim about a vendor should be checked on the vendor’s own page.
The Slippage Desk is an independent publication. We name the sources we rely on, mark vendor claims as vendor claims, and discuss alternatives such as plain arbitrage, covered in our guide to sandwich bot alternatives.
All articles
Basics
What Is a Sandwich Attack in Crypto? A Clear Explanation
What is a sandwich attack in crypto? A plain explanation of how bots trade on both sides of your swap, why slippage matters and what it costs the trader.
BasicsHow Does a Sandwich Bot Work? Step-by-Step Logic
How does a sandwich bot work? Follow the pipeline from mempool monitoring to simulation, bundle submission and profit checks, with the limits of each stage.
BasicsSandwich Attack vs Front-Running: Key Differences Explained
Sandwich attack vs front-running: how the two tactics differ, what a back-run adds, which one costs users more and how each is treated in market-abuse discussions.
Running a Bot
Solana Sandwich Bot: How It Differs From Ethereum
How a Solana sandwich bot works, why Jito bundles and tips matter, how it differs from Ethereum and what operators and swappers should know about the risks.
Running a BotEthereum Sandwich Bot: Mempool, Builders and Gas Costs
How an Ethereum sandwich bot operates: public mempool, gas bidding, builder bundles and why costs and private routing change the economics for bots and users.
Running a BotSandwich Bot Cost: Licence, Gas, Tips and Infrastructure
What does a sandwich bot cost? A breakdown of the licence price, gas, tips, servers and hidden costs, using the pricing CryptoMEV Bot publishes as a reference point.
Running a BotBuild or Buy a Sandwich Bot? An Honest Comparison
Build or buy a sandwich bot? Compare engineering time, infrastructure, risk and support for a custom build versus a licensed product, with questions to ask first.
Protection & Law
Is Sandwich Trading Legal? What the Rules Say and Don't
Is sandwich trading legal? An honest look at market manipulation rules, enforcement uncertainty and the questions to put to a lawyer before running a sandwich bot.
Protection & LawHow to Avoid Sandwich Attacks: 7 Practical Defences
How to avoid sandwich attacks on DEX swaps: tighten slippage, split trades, use private routing and MEV protection, and check pools before trading. Clear steps.
Protection & LawSlippage Tolerance Explained: Settings That Limit Sandwich Losses
Slippage tolerance explained: what it is, how price impact differs, what values suit different tokens and why a loose setting invites sandwich bots.
Protection & LawHow to Check If You Were Sandwiched on a Block Explorer
How to check if you were sandwiched: find your transaction, inspect neighbouring trades in the same block, compare minimum received and estimate the loss.
Strategy
Are Sandwich Bots Profitable? Costs, Odds and What's Unknown
Are sandwich bots profitable? Why gross gains mislead, which costs erode margins, what vendors do and do not state, and how to test results honestly before scaling.
StrategySandwich Bot Alternatives: Arbitrage, Liquidations and More
Sandwich bot alternatives for MEV searchers: cross-DEX arbitrage, flash loans, liquidations and market making, compared by competition, risk and ethical profile.
StrategySandwich Bot Risks: Failed Attacks, Competition and Legal Exposure
Sandwich bot risks explained: failed attacks, gas losses, rival bots, bad tokens, key security, regulatory exposure and how to size a test deployment carefully.
Frequently asked questions
What is a sandwich bot in crypto?
It is an automated program that places a buy before and a sell after a pending swap on a decentralised exchange, profiting from the price movement that the swap itself causes.
Do sandwich bots make money?
Sometimes, but nobody can promise it. Gas costs, failed transactions and competition from other bots can erase gross gains. CryptoMEV Bot’s own page gives no performance figures.
Is running a sandwich bot legal?
It depends on the jurisdiction and the facts. Rules on market manipulation are evolving, and some prosecutors and regulators have scrutinised MEV tactics. Get qualified legal advice.
How can I protect my swaps from sandwich bots?
Use tighter slippage limits, trade smaller sizes on deep pools, and route through a private transaction or MEV-protection service where available.
Which chains do sandwich bots work on?
They work wherever pending transactions can be observed and ordered, most discussed on Ethereum-style chains and Solana. CryptoMEV Bot’s sandwich page does not list supported chains.