All Insight
    October 22, 202611 min read

    What Is MEV in Crypto? How Bots Front-Run Trades On-Chain

    MEV crypto is the profit that can be made by choosing which transactions go into a block, and in what order. The letters stand for maximal extractable value. When you submit a trade on a blockchain, it does not execute instantly. It waits in line, and whoever controls the ordering of that line can sometimes place their own transactions around yours and keep the difference. Bots do this at scale, in milliseconds, all day. This guide explains how MEV crypto works, how front-running and sandwich attacks happen, what they cost ordinary traders, and what you can do about it.

    Key summary

    • MEV crypto means value captured by reordering, inserting or excluding transactions within a block.

    • Common forms include arbitrage, liquidations, front-running and sandwich attacks.

    • Some MEV crypto activity is useful for markets, such as arbitrage that keeps prices aligned. Other forms, like sandwiching, take value directly from users.

    • You can reduce your exposure with tighter slippage settings, private transaction routes and smaller trades.

    • SpotX is not an MEV protection tool. It reads public on-chain activity across Ethereum, Solana, Base and Hyperliquid and scores wallet clusters, and every alert carries a transaction hash you can verify.

    What Is MEV Crypto?

    MEV crypto began as “miner extractable value”, back when miners decided which transactions made it into a block. After Ethereum moved to proof of stake, the term shifted to “maximal extractable value”, because the power to order transactions now sits with validators, block builders and the specialists who feed them.

    The idea is simple. A block is a list of transactions in a specific order. The order matters, because many transactions change prices or state that later transactions depend on. If you can see a trade that will move a price, and you can place your own trade just before or after it, you can profit from the movement. That profit is MEV crypto.

    It is not a bug in the usual sense. It follows from two facts: transactions are visible before they are confirmed, and someone has to decide the order. As long as both are true, a market for ordering exists. Our guide to what on-chain data is explains the public record that makes it all observable.

    How a Transaction Gets Into a Block

    To see where MEV crypto comes from, follow a trade from click to confirmation.

    You sign a swap in your wallet. The wallet sends it to a node, which broadcasts it to the network. On many chains, pending transactions wait in a shared holding area, often called the mempool, before they are included in a block. Anyone running the right software can watch it.

    Validators or block builders then pick which transactions to include and in what order. They are usually paid by fees, and many chains let senders attach a tip to get priority. A higher tip tends to move a transaction closer to the front.

    That arrangement creates the opportunity. Pending transactions are readable, ordering can be bought, and a bot that spots a profitable gap can pay for a better position than yours. Not every chain works the same way, and the details vary, but the general pattern holds.

    The Main Types of MEV Crypto

    Type

    What happens

    Effect on other users

    Common venue

    Arbitrage

    Bot buys on one market and sells on another when prices differ

    Generally neutral to helpful, since it aligns prices

    Decentralised exchanges

    Liquidations

    Bot repays a risky loan and collects the reward

    Keeps lending markets solvent, costs the borrower

    Lending and margin protocols

    Front-running

    Bot places its trade ahead of yours to profit from your price impact

    Gives you a worse price

    Swaps, token launches, mints

    Back-running

    Bot places a trade right after yours to capture the aftermath

    Usually little direct harm

    Large swaps, price updates

    Sandwich attack

    Bot trades before and after yours, squeezing you in between

    Directly costs you

    Swaps with loose slippage

    Censorship or exclusion

    A block producer leaves a transaction out

    Delays or blocks users

    Any chain

    The first two are often described as the “good” kind, because they serve a function. The sandwich is the one most traders hate. Notice that the line between helpful and harmful is not fixed. It depends on whose money moves.

    How Front-Running Works

    Front-running is easiest to see in a plain swap. Suppose you submit a buy of a token on a decentralised exchange. Your order will push the price up a little, because buying shifts the pool.

    A bot sees your pending transaction. It calculates that your purchase will raise the price. So it buys the same token first, using a higher tip to jump ahead of you. Your order then executes at the slightly higher price the bot created. The bot can sell afterwards at the new level and keep the gap.

    You still got your tokens. You just paid more than you needed to, and the bot earned the difference. Multiplied across thousands of transactions, front-running turns into a steady tax on anyone who trades predictably in public.

    Bots find opportunities automatically. They simulate your transaction, estimate the profit and compete with other bots to be the one who gets it. Often the winning bot pays most of its expected profit to the validator or builder as a tip, which is how the value flows through the system.

    How a Sandwich Attack Works

    A sandwich is front-running with a second step. The bot places one transaction before yours and one after, so your trade is the filling.

    Here is the sequence:

    1. You submit a swap with a slippage tolerance, say 1 percent, meaning you accept a worse price up to that limit.

    2. A bot sees it and buys the same token just ahead of you, pushing the price up.

    3. Your swap executes at the inflated price, still within your tolerance. This pushes the price up further.

    4. The bot sells right after you, at the higher price, and pockets the difference.

    Your slippage setting is the bot’s budget. If you tolerate 1 percent, the bot can extract close to 1 percent minus its costs, and still leave your transaction valid. That is why loose settings on low-liquidity pools are a common way to get sandwiched.

    A Worked Example (Illustrative)

    The numbers below are invented to show the mechanics. They are not real market data.

    You swap an illustrative 10,000 dollars into a token on a pool with modest liquidity. You leave slippage at 1 percent because the default seemed fine. A sandwich bot spots your order.

    The bot buys first. The pool price moves up by about 0.6 percent. Your swap now executes at that higher price, so you receive roughly 0.6 percent fewer tokens than you would have in a quiet market, which is about 60 dollars of value. Your trade still falls inside your 1 percent limit, so it goes through without complaint. The bot then sells into the price your trade lifted, and after paying a tip to the block producer and its own fees, it keeps a profit of perhaps 25 to 40 dollars.

    You never saw anything wrong. The trade confirmed, the tokens arrived, and the loss looks like ordinary slippage. This is the quiet part of MEV crypto: for most users, the cost is invisible unless they go looking.

    Other Forms Worth Knowing

    Liquidation MEV. When a borrower’s position becomes unsafe, anyone can repay part of the debt and collect a reward. Bots compete to be first. This keeps lending protocols solvent, but the borrower loses collateral. Our explainer on crypto liquidations covers the mechanics.

    Sniping new tokens. Bots watch for newly created pools and buy the moment liquidity appears, often before human traders can react. Many Telegram-based tools sit in this space. Our piece on Telegram trading bots explains how they work, and trading bots versus signal alerts compares the two approaches.

    Cross-chain and cross-venue arbitrage. Bots move value between markets when prices diverge. It is competitive, fast and mostly invisible to ordinary users.

    MEV Crypto Across Different Chains

    The exact shape of MEV crypto depends on how a chain orders transactions.

    On Ethereum, there is a public mempool and a mature market for block building. Specialist searchers submit bundles of transactions to builders, and builders compete to offer validators the most valuable block. Private routes exist for users who want to avoid the public queue.

    On Solana, there is no traditional public mempool in the same sense, and ordering is shaped by who the upcoming leader is and how tips are paid. MEV still exists, taking different forms and relying on different infrastructure.

    On Base and other layer two networks, a sequencer commonly orders transactions, which changes who holds the power and how it is exercised.

    On a trading-focused chain such as Hyperliquid, order matching works through an on-chain book, which changes which kinds of ordering games are possible. Our Hyperliquid explainer covers how that venue works.

    The details are moving quickly, and chain designs change. Treat any description of a specific network’s MEV rules as a snapshot, and check current documentation before relying on one.

    What MEV Costs You, and Who Gains

    Direct cost to users. Worse fill prices on swaps, particularly in thin pools with loose slippage. Individually small, collectively large.

    Higher fees. Bots bidding for position can raise tips and congestion during busy moments.

    Failed or delayed transactions. When bots compete for the same opportunity, losing transactions can fail and still cost gas.

    Benefits to the system. Arbitrage helps keep prices consistent across venues, and liquidations keep lending protocols solvent. Some argue MEV crypto activity is the price of an open, permissionless market. Others argue it is a design flaw to be reduced. The debate is live and unresolved.

    Who gains: searchers running the bots, builders and validators who receive tips, and sometimes the protocols that share in the flow. Ordinary traders are mostly on the paying side.

    How to Reduce Your MEV Exposure

    You cannot eliminate MEV crypto, but you can make yourself a worse target.

    Tighten slippage. A lower tolerance leaves the bot less room. If the trade fails because the price moved, retry rather than raising the limit blindly.

    Use private transaction routes. Some wallets and services send your transaction directly to block builders instead of the public queue, which hides it from sandwich bots. Check how a given service works before trusting it.

    Trade in smaller sizes on thin pools. Large orders in shallow liquidity create the biggest price impact, and so the biggest opportunity.

    Use limit orders where available. Venues that support them or batch auctions can reduce the ordering games.

    Prefer deeper liquidity. A pool with plenty of depth moves less on your trade, leaving less to extract.

    Watch what you approve and where you click. Many losses blamed on MEV are really scams or bad approvals. Keep the two separate.

    Five Questions to Ask Before You Swap

    1. How deep is the pool? Thin liquidity makes your trade easy to exploit.

    2. What is my slippage setting? Treat it as the maximum you are willing to hand over.

    3. Is my transaction visible before it confirms? If a private route is available, consider it.

    4. Am I trading at a predictable time or size? Round numbers in public stand out.

    5. Is the cost worth the convenience? Sometimes a slightly worse price on a protected route beats a cheaper-looking one that gets sandwiched.

    Common Myths About MEV Crypto

    “MEV is only a problem on Ethereum.” Versions of it appear on every chain with ordering power, though the forms differ.

    “It is always theft.” Some of it is arbitrage and liquidation that serve the market. Sandwiching is the clearest case of value taken from users.

    “A failed transaction means I was attacked.” Failures have many causes, including price moves and gas settings.

    “A wallet warning means I am safe.” Wallet checks cannot see every bot waiting in the queue.

    “MEV bots are always large operations.” Some are. Others are small scripts run by individuals.

    “Using a private route fixes everything.” It reduces one kind of exposure, and it introduces trust in whoever runs the route.

    The On-Chain Angle: Bots Leave Traces

    MEV crypto activity is visible after the fact. Bot wallets send transactions in bursts, repeat the same patterns and often interact with the same set of contracts. A look at a bot’s address on a block explorer typically shows thousands of tiny, fast trades with consistent shapes.

    This matters for anyone reading wallet activity. Bots can look like coordinated buying when many addresses act within seconds of each other at similar sizes. It matters whether a pattern comes from independent humans, from one entity splitting its orders, or from a bot responding to the same trigger. Telling these apart is a large part of reading on-chain data well. Our guides to how a crypto wallet tracker works and crypto wallet tracking explain how related addresses are grouped.

    Public Queue vs Private Route: Side by Side

    Factor

    Public queue

    Private route

    Visibility before confirmation

    Anyone can see it

    Hidden from the public queue

    Sandwich exposure

    Higher

    Lower

    Trust required

    In the chain’s rules

    Also in the route operator

    Cost

    Standard fees

    Sometimes extra or via tips

    Availability

    Default everywhere

    Depends on wallet and chain

    Typical user

    Most traders

    Larger or more cautious traders

    Neither option is risk free. The choice is about which risks you prefer.

    When You Can Skip Worrying About MEV

    Not every trade needs this level of care.

    • You trade small amounts on deep, liquid pools where price impact is tiny.

    • You hold long term and rarely swap.

    • You mostly use centralised venues, where on-chain ordering does not apply in the same way.

    • The cost of protection exceeds the likely loss on the trade.

    For larger swaps, thin pools, new tokens or busy network conditions, the habits above are worth the minute they take.

    Where SpotX Fits In

    SpotX does not protect trades from MEV crypto, route transactions or execute swaps. It is a signal platform that reads public on-chain activity across Ethereum, Solana, Base and Hyperliquid, groups related addresses into wallet clusters, and scores them through a seven-stage funnel. Because bots and coordinated actors can resemble crowds, the scoring weighs how independent the wallets in a cluster really are, and wallets that enter within 90 seconds of each other at near-identical size are collapsed into a single entity. Anything scoring below 65 is suppressed and never published.

    Alerts go out through Telegram, Discord or webhook, and each one carries the wallet cluster, the score and the on-chain transaction hash. Speed depends on tier: under 30 seconds on Trader, under 25 on Pro and under 20 on Desk, which delivers JSON over webhook. API and webhook access starts at Pro. SpotX is not a wallet, an exchange or a fund, it never asks for your keys or wallet permissions, and it is information, not investment advice. To check any alert yourself, see verifying any alert on-chain. There is a 7-day free trial, plus a free weekly email called Signal of the Week.

    Frequently asked questions

    What is MEV crypto?

    It stands for maximal extractable value. It is the profit available from choosing which transactions go into a block and in what order, often through arbitrage, liquidations, front-running and sandwich attacks.

    How do bots front-run trades?

    They watch pending transactions, simulate the price effect and place their own transaction ahead with a higher tip. Your trade then executes at a worse price, and the bot keeps the difference.

    What is a sandwich attack?

    A bot trades just before and just after your swap, squeezing it in the middle. The bot profits from the price movement your trade creates, within the slippage you allowed.

    Can I avoid MEV crypto entirely?

    Not entirely. You can reduce exposure with tighter slippage, private transaction routes, smaller trades on thin pools and deeper liquidity.

    Is MEV crypto illegal?

    Legal status varies and is still developing. Some activity, like arbitrage, is widely accepted. Others, like sandwiching, are controversial. This article is not legal advice.

    Does SpotX protect me from MEV?

    No. SpotX reports scored on-chain wallet activity with a transaction hash for each alert. It does not route or protect trades.

    By SpotX Research