MEV bot explained: how bots extract millions from your crypto trades

MEV bot

Every swap you make on a decentralized exchange gets watched before it settles. MEV bots scan the mempool for pending transactions, calculate whether they can profit from yours, and act in milliseconds. In 2025, sandwich bots alone pulled between $370 million and $500 million from Solana users over a 16-month window. On Ethereum, the total MEV extracted across all strategies now exceeds $3 billion per year.

This is not a niche technical problem. If you trade on any DeFi protocol, MEV bots are a cost you are already paying, whether you realize it or not.

What is a MEV bot?#

MEV stands for maximal extractable value. It refers to the profit that can be captured by reordering, inserting, or censoring transactions within a block before it gets finalized on the blockchain.

A MEV bot is an automated program that does this at scale. It monitors the mempool, the waiting room where unconfirmed transactions sit, and looks for opportunities to extract value from other users' trades. The bot submits its own transactions strategically, often paying higher gas fees to get priority placement.

The concept is not new. Traditional finance has dealt with front running for decades. What makes crypto different is that the mempool is public. Anyone with the right code can see your trade before it executes and position themselves around it.

How does a MEV bot work?#

The process follows a predictable pattern. A user submits a swap on a DEX like Uniswap or Raydium. That transaction enters the mempool. A MEV bot detects it, calculates the expected price impact, and decides whether the opportunity justifies the gas cost.

If the math works, the bot constructs and submits its own transaction with a higher gas price to land ahead of (or around) the target trade. On Ethereum, many bots route their transactions through Flashbots, which lets them submit bundles directly to block builders rather than broadcasting to the public mempool. This gives the bot a better chance of precise placement and reduces the risk of failed transactions.

The entire cycle, detection to execution, happens in under a second on most chains.

Types of MEV strategies#

Not all MEV bots operate the same way. The strategies range from relatively benign to outright parasitic.

Arbitrage is the cleanest form. When the same token trades at different prices on two exchanges, a bot buys on the cheaper one and sells on the more expensive one within the same block. This actually helps markets by correcting price discrepancies. Arbitrage bots typically pay 50-60% of their profits as tips to validators.

Sandwich attacks are the most common complaint. The bot places one transaction before yours and another after, manipulating the price so you get a worse rate. In 2025, sandwich attacks accounted for $289.76 million, roughly 51.56% of all MEV volume on Ethereum. One operator known as "jaredfromsubway.eth" controlled around 70% of sandwich activity on Ethereum at peak, running multi-layered attacks that targeted several victims in a single bundle.

Liquidation bots monitor lending protocols like Aave and Compound. When a borrower's collateral drops below the required ratio, the bot triggers the liquidation and collects the protocol's reward. This keeps DeFi lending functional but can accelerate price drops during volatile markets.

Backrunning is less aggressive. The bot places its transaction immediately after a large trade to capture the price movement that trade caused. Some protection services like MEV Blocker actually redirect backrun profits to users, returning up to 90% of the captured value.

The Solana MEV problem#

Solana's architecture creates a different MEV environment. There is no traditional mempool. Transactions go directly to the current block leader. But Jito Labs built a system that functions like Flashbots for Solana, and it changed everything.

Over one 30-day stretch in late 2024, a single Solana sandwich bot executed 1.55 million transactions with an 88.9% success rate, generating 65,880 SOL ($13.43 million in profit). One bot alone now handles 42% of all sandwich volume on Solana, processing over $1.6 billion in trades in a single month.

The concentration is extreme. A handful of operators run the majority of Solana MEV extraction. In early 2025, one bot netted $30 million in just two months. The Solana Foundation eventually removed several validators from its delegation program for participating in sandwich attacks, but enforcement remains inconsistent.

Are MEV bots profitable?#

The honest answer: for most people, no.

On Ethereum, the average profit per sandwich attack dropped to roughly $3 by October 2025. About one-third of active sandwich bots operated around breakeven, and 30% recorded net losses. The competition is brutal. Hundreds of bots fight over the same opportunities, and gas costs eat into margins.

Running infrastructure is also expensive. A competitive setup requires a full Ethereum node ($150 per month minimum), connections to multiple block builders, and custom smart contracts written in optimized Solidity or even Yul. Multi-chain operations cost $750 or more monthly. Most solo operators end up underwater, as one developer documented in detail after building an MEV bot in Rust that never turned a profit.

The bots that do make money tend to be run by well-funded teams with custom infrastructure, proprietary algorithms, and direct relationships with block builders. The garage operation beating institutional players is mostly a fantasy, or a scam pitch.

MEV bot scams are everywhere#

Search for "MEV bot" on YouTube and you will find dozens of tutorials promising easy profits. Most are scams. The typical setup: a video walks you through deploying a "free MEV bot" smart contract. The code looks legitimate, with functions named things like "SearchProfitability" and "ConnectFastestNode." Buried in thousands of lines of Solidity is a hidden contract that redirects your deposited ETH to the scammer's wallet.

Lukka's blockchain investigation team traced one such operation and found the scammer's wallet holding around 156 ETH (approximately $411,000), all stolen from people who thought they were deploying arbitrage bots. These scams scale through social media. One operator reached over 270,000 YouTube subscribers promoting fake bots.

The rule is simple: if someone is giving you a profitable trading bot for free, it is not profitable. It is the product, and you are the revenue.

How to protect yourself from MEV bots#

Protection has improved significantly. Around 80% of Ethereum transactions now use private RPCs that hide trades from the public mempool.

Flashbots Protect is the most widely adopted solution. It routes your transaction through a private channel directly to block builders, bypassing the public mempool entirely. Users receive 90% of any backrun profits their trades generate. Uniswap's mobile wallet now integrates Flashbots protection by default.

MEV Blocker, built by CoW Protocol and maintained alongside Agnostic Relay and Beaverbuild, offers five different endpoint modes depending on your priority: speed, full privacy, or maximum rebates.

CoW Swap takes a different approach altogether. Instead of sending individual transactions, it batches trades together using a "Coincidence of Wants" model. Batch auctions with uniform clearing prices make sandwich attacks structurally impossible within the protocol.

On Solana, protection is harder. Setting lower slippage tolerance helps but does not eliminate the problem. Some wallets and aggregators are beginning to offer private transaction routing, though the ecosystem is still catching up to Ethereum's protection infrastructure.

Beyond specific tools, basic habits matter. Keep slippage tolerance tight. Use limit orders when possible. Avoid trading during extreme volatility when MEV extraction peaks.

What comes next#

MEV is not going away. It is a structural feature of how blockchains order transactions, and as long as ordering matters, someone will try to profit from it.

Flashbots launched BuilderNet in late 2024, a decentralized block building network jointly operated with Beaverbuild and Nethermind. The goal is to reduce the concentration of power among individual block builders. Whether that changes the economics for everyday traders remains to be seen.

On the regulatory side, the 2024 case against two MIT graduates accused of extracting $25 million through MEV manipulation set a legal precedent. Whether enforcement scales beyond headline cases is an open question.

For now, the practical reality is straightforward. Use a private RPC. Check your slippage. Assume that every public mempool transaction is being watched, because it is.

Clara Whitfield

Clara Whitfield

Share this article:

The newsletter for crypto entrepreneurs

Join founders and innovators exploring crypto payments. Get insights, product updates, and stories from businesses building the future of digital commerce.

Unsubscribe anytime. By entering your email, you agree to receive marketing emails from ItisPay. By proceeding, you agree to the Terms and Conditions and Privacy Policy.

Ready to launch stablecoin-first payments under your brand?

Stablecoin-first infrastructure with 1:1 EUR/USD backing. Deploy in 1 week. Built for high-volume PSPs and neobanks with zero volatility risk.