icon icon Home
icon icon Accounts
icon icon Quick start
icon icon Symbols

What Is Front Running in Crypto and How Does It Work?

Author
Abe Cofnas
Abe Cofnas
calendar Last update: 5 December 2026
watch Reading time: 9 min

Front running in crypto is trading ahead of a pending order that you can see, to profit from the price move that order will cause. On a blockchain, the visible order is usually a swap waiting in the public mempool. A bot spots it, pays a higher fee to be processed first, and often sells straight after the swap has pushed the price up.

It matters now because the cost is measurable and the law is moving. Cointelegraph Research used EigenPhi data to track sandwich attacks on Ethereum. Monthly extraction fell from nearly $10 million in late 2024 to about $2.5 million in October 2025. Even so, roughly 70% of the attacks it tracked came from one entity. On 16 November 2026, a US judge acquitted two brothers of wire fraud over a $25 million exploit that targeted trading bots on Ethereum.

This guide explains how front running works on a blockchain and the forms it takes. It then covers what it costs, where the law stands and how to avoid it. The last section covers what it means for crypto CFD traders.

bookmark
Key Takeaways
  • Front running is trading ahead of a visible pending order. In crypto, bots read the public mempool and pay higher fees to jump the queue.
  • The best-known form is the sandwich attack: a buy before your swap and a sell after it. In our worked example, a 5% slippage setting let a bot take about 4,646 USDC from one 100,000 USDC swap.
  • Cointelegraph Research found that monthly sandwich extraction on Ethereum fell from nearly $10 million to about $2.5 million between late 2024 and October 2025. One entity was still linked to roughly 70% of attacks.
  • The law is unsettled for bots. The Second Circuit vacated the Chastain conviction on 31 July 2025, and a judge acquitted the Peraire-Bueno brothers on 16 November 2026. The EU's MiCA market abuse rules have applied since 30 December 2024.
  • Private routes such as Flashbots Protect and MEV Blocker, plus tight slippage limits, cut the risk but do not remove it. A crypto CFD never enters a mempool, although a crypto deposit does.

What Is Front Running in Crypto?

Front running is placing your own trade ahead of a known pending order, so that the price move the order causes pays you. In traditional markets it usually means a broker, dealer or market maker that learns of a client’s order and trades first. BIS Bulletin 58, published on 16 June 2022, says validators can carry out front-running and sandwich trades that “would be illegal in traditional markets”.

sms-star

Risk Disclosure
Trading forex and CFDs carries a high level of risk and can result in the loss of all your capital. This content is educational and is not investment advice. Never risk money you cannot afford to lose.

Front Running Meaning: Trading Ahead of Known Information

The core idea is an information edge over a pending trade. The front runner takes little risk, because the order it trades around is already on its way. The victim then fills at a worse price, and that difference becomes the front runner’s profit.

Front Running vs Insider Trading vs MEV

The three terms overlap but differ. Insider trading uses confidential information about an asset or event. Front running uses knowledge of a pending order. MEV, short for maximal extractable value, is the wider profit open to whoever orders transactions in a block. Front running is one of its forms.

Why Crypto Makes It Easy

Public blockchains help front runners in three ways. Pending transactions are visible before they confirm, anyone can run a bot without permission, and block builders usually rank transactions by what they pay. A bot can also simulate a transaction before bidding, so it knows its profit first. These traits come from the open design of a blockchain and the apps of decentralised finance built on it.

How Front Running Works on a Blockchain

A front-running bot works in three steps: see, simulate and bid. Each step uses a feature that public blockchains offer to everyone. The sequence below follows a swap on Ethereum.

Step One: A Wallet Broadcasts the Swap

You sign a swap in a wallet such as MetaMask, which sends it to a node. The node checks it and relays it to its peers, and it joins the public mempool, the waiting area for unconfirmed transactions. Anyone who runs a node, or pays for a node service, can read that queue.

Step Two: A Bot Simulates and Bids

Bots scan every new pending transaction. They run it against a copy of the blockchain’s current state to see its effect. They then test whether a trade placed before or after it would profit. If one would, the bot submits its own transaction with a higher tip, or sends a bundle of transactions straight to a builder.

Step Three: The Builder Orders the Block

Since the Merge on 15 September 2022, validators have proposed Ethereum blocks, but specialised builders assemble most of them. In May 2026, about 93% of mainnet blocks arrived through MEV-Boost relays, according to the Ethereum Foundation’s ethPandaOps team. A builder ranks transactions and bundles by what they pay, so the bot’s buy lands before your swap and its sell lands after it. The tip goes to the builder and validator, not to you.

A bot needs no access to your wallet. It reads the pending swap, outbids it, and the builder places its trades on both sides.
A bot needs no access to your wallet. It reads the pending swap, outbids it, and the builder places its trades on both sides.

Types of Crypto Front Running

Not every trade ahead of another is the same offence. The table separates five forms by method, venue and legal position as of 4 December 2026. Bots and builders dominate on-chain activity, while insiders at exchanges and marketplaces trade on knowledge of their own platform.

TypeHow it worksTypical venueLegal position
DisplacementA bot copies a profitable pending transaction and pays a higher fee to run firstPublic mempool and decentralised exchangesUnsettled for bots
Sandwich attackA bot buys before a large swap and sells after itAutomated market maker poolsUnsettled; the BIS says it would be illegal in traditional markets
Listing front runningAn insider trades ahead of a public listing announcementCentralised exchangesProsecuted: Wahi pleaded guilty and received two years in prison
Platform decision tradingAn insider buys items before the platform features themNFT marketplacesChastain conviction vacated on 31 July 2025
Validator exploitValidators use a relay flaw to intercept other bots' tradesBlock productionPeraire-Bueno brothers acquitted on 16 November 2026

Five forms of crypto front running and their legal position, based on court and agency records to 4 December 2026.

Displacement is the oldest bot strategy. A bot copies a profitable pending transaction, such as an arbitrage, and pays a higher fee to run first. It resembles high-frequency trading in speed and automation. A sandwich needs a victim, usually a large swap with a loose slippage limit.

Sandwich Attack: A Worked Example

A sandwich attack is the best-known form of crypto front running. It works on automated pools such as Uniswap, which price trades from the ratio of two assets in a pool. Each trade moves that ratio, so a large swap pushes the price against its own sender. The same mechanism drives impermanent loss for liquidity providers.

Mini Example: Sandwiching a 100,000 USDC Swap

These numbers are illustrative. A pool holds 1,000 ETH and 3,000,000 USDC, so ETH trades at 3,000 USDC, and it charges a 0.3% fee. You swap 100,000 USDC for ETH with a 5% slippage tolerance. Alone, the swap returns 32.16 ETH, an average of about 3,109 USDC per ETH, because your own trade moves the price.

A bot sees the swap in the mempool and pays a higher fee to go first. It buys with 79,000 USDC and receives 25.58 ETH, lifting the pool price to 3,160. Your swap now returns 30.56 ETH, an average of 3,272 USDC, and the price rises to 3,368. That is 4.98% less than the clean outcome, just inside your tolerance, so the swap still goes through.

The bot then sells its 25.58 ETH into the higher price and receives 83,646 USDC. Its profit is 83,646 minus 79,000, or 4,646 USDC, before fees and tips. You receive 1.60 ETH less, worth about 4,805 USDC at the starting price of 3,000.

Each trade moves the pool price. The bot's buy lifts it before your swap, and your swap lifts it further for the bot's sell.
Each trade moves the pool price. The bot's buy lifts it before your swap, and your swap lifts it further for the bot's sell.

Slippage Tolerance: The Setting Bots Read

Slippage tolerance is the largest price move you accept before a swap reverts, and a sandwich can use almost all of it. In the example, the bot’s take scales with the setting: about 458 USDC at 0.5%, 912 at 1%, 1,869 at 2% and 4,646 at 5%. A tighter limit can make the swap fail instead, which costs only the gas already spent.

What Front Running Costs Crypto Traders

The cost depends on the measure, the period and the chain. Cointelegraph Research analysed EigenPhi data for November 2024 to October 2025. In that period, monthly sandwich extraction on Ethereum fell from nearly $10 million to about $2.5 million. The average profit per attack was just above $3, and attackers kept a margin of about 5%. In October 2025, 515 distinct bots were active, and roughly 70% of all attacks were linked to one entity, jaredfromsubway.eth.

Frequency stayed high. Rutgers University researchers counted sandwich attacks at an average of more than one per Ethereum block, in a working draft dated 22 July 2025. Cointelegraph Research put annual losses to traders at about $60 million. It added that block builders capture most of that value through gas fees.

Monthly extraction fell by about three quarters, but profit per attack was already thin and one entity dominated.
Monthly extraction fell by about three quarters, but profit per attack was already thin and one entity dominated.
sms-star

Key Point
A falling total does not make a trade safe. In the worked example, one sandwich cost the swapper 4.98% of the ETH it expected.

Is Front Running Crypto Illegal?

It depends on who front runs, what they know and where. In traditional markets front running by a broker is prohibited, and crypto has no single rulebook of its own. Prosecutors and regulators have therefore reached for older tools: insider trading law, wire fraud and, in Europe, a new market abuse regime.

Insider Front Running on Exchanges

The clearest crypto cases involve insiders. On 21 July 2022, the SEC charged a former Coinbase product manager, Ishan Wahi, his brother and a friend. Their trades ahead of listing announcements earned more than $1.1 million. Wahi pleaded guilty and was sentenced to two years in prison. The charges were insider trading and wire fraud conspiracy, not a crypto specific offence. Staff at crypto exchanges hold the same kind of advance knowledge that brokers hold elsewhere.

Chastain and Peraire-Bueno: Wire Fraud Meets Its Limits

On 31 July 2025, the Second Circuit vacated the convictions of Nathaniel Chastain, a former OpenSea product manager. He had bought NFTs before featuring them and made about $57,000. The court held that confidential information must have commercial value to the company to count as property under the wire fraud statute.

On 16 November 2026, a federal judge acquitted Anton and James Peraire-Bueno. Prosecutors said they used a flaw in MEV-Boost to take $25 million from trading bots in 12 seconds in April 2023. The judge found no material misrepresentation, and separated breaking MEV-Boost’s intended design from committing wire fraud.

Europe: MiCA's Market Abuse Rules

In the EU, Title VI of MiCA bans insider dealing, unlawful disclosure of inside information and market manipulation involving crypto-assets. It has applied since 30 December 2024. ESMA published guidelines on spotting market abuse under MiCA on 29 April 2025. Whether MEV extraction falls under those rules is still debated. A paper in the European Journal of Risk Regulation says its status needs more research before it becomes settled.

Courts accepted guilty pleas from insiders, while later wire fraud theories failed against NFT and MEV defendants.
Courts accepted guilty pleas from insiders, while later wire fraud theories failed against NFT and MEV defendants.

How to Avoid Front Running in Crypto

No setting removes the risk, but three habits cut most of it. Hide the transaction, limit what a bot can take, and use venues that do not expose your order.

Send Swaps Through a Private Route

A private route skips the public mempool, so bots watching it never see the swap. Flashbots Protect, launched in 2022, sends transactions to a private pool and leaves out ones that would revert. MEV Blocker, built by CoW Swap with Agnostic Relay and Beaver Build, lets searchers bid to back-run a trade. It does not let them front-run or sandwich it, and it returns 90% of that profit to the sender. Both work by adding an RPC address to a wallet.

Cap Slippage and Size Your Swaps

Set slippage tolerance as low as the pool allows. Tighter limits leave bots less to take, as the worked example shows. Smaller swaps also move the price less, so they leave less for a bot to capture.

Prefer Venues That Batch or Hide Orders

Intent-based venues such as CoW Swap and 1inch Fusion take signed orders off-chain and let professional solvers or resolvers fill them. That keeps the order out of the public mempool until it settles. These venues move the trust problem rather than remove it, so check how each one chooses who fills your order.

The Honest Limits of Front Running Data

The headline numbers are estimates. The Cointelegraph Research article gives about $60 million in annual losses in its text. Its summary says nearly $40 million for 2025, and the two are not reconciled. A post dated 7 April 2026 on the Flashbots Collective forum looked at the three most profitable sandwiches in one 30-day window. They showed $4.70 million of profit against $7.05 of cost. Dashboards had priced illiquid tokens at values no one could realise.

Protection is partial. An arXiv study of November and December 2024 confirmed 2,932 sandwich attacks on privately sent transactions, costing users $409,236. One bot made nearly two thirds of the private front runs. A private route also shows your swap to the route operator and to builders.

Fixes are still pending. Ethereum’s Glamsterdam upgrade, which includes enshrined proposer-builder separation, had no mainnet date as of 27 November 2026. Developers had set 15 December 2026 for its fork on the Hoodi test network. That change moves block auctions into the protocol, but it does not by itself hide pending swaps from builders.

Q: Does a private route make sandwich attacks impossible?
A: No. It hides your swap from the public mempool, which blocks most bots. Builders and the route operator still see it, and the December 2024 arXiv study found sandwiches on private transactions too.

What Front Running Means for Crypto CFD Traders

A crypto CFD is a contract with the broker, so the trade itself never enters a mempool or a decentralised pool. Aron Groups offers BTCUSD and ETHUSD CFDs on MetaTrader 5, so there is no block in which a bot can wrap your order. The risks are different. With market execution, an order fills at the best price available when it arrives, and floating spreads widen when liquidity thins.

The on-chain steps around a CFD account still matter. A deposit in Bitcoin, Ethereum or Tether is a transfer that waits in a mempool and pays a network fee. A token swap made on a decentralised exchange just before depositing can be sandwiched. Crypto leverage runs up to 1:50 on smaller trade values, which magnifies losses as well as gains. A stop-loss is not a guaranteed exit when prices gap, and a demo account allows practice with virtual funds.

Conclusion

Front running is trading ahead of a pending order. Crypto makes it easy because pending orders are public and bots can pay for priority. The sandwich attack is the best-known form, and its profit depends on the size of your swap and the slippage limit you set.

Measured extraction fell during 2025, but estimates differ and the law is still catching up. Private routes, tight limits and intent-based venues reduce the exposure without removing it.

Frequently Asked Questions

Short answers to common questions about front running in crypto.

What is front running in crypto?

It is trading ahead of a pending order that you can see, to profit from the price move the order causes. On a blockchain, bots do it by reading the public mempool and paying a higher fee to go first.

Is front running crypto illegal?

It depends on who does it and where. Some insider cases ended in guilty pleas, such as the Coinbase case, while others were overturned or failed. A judge acquitted the Peraire-Bueno brothers in an MEV case on 16 November 2026.

How do you prevent front running in crypto?

Use a private route such as Flashbots Protect or MEV Blocker, set a low slippage tolerance, and prefer intent-based venues. These steps cut the risk but do not remove it.

What is the difference between front running and a sandwich attack?

Front running is any trade placed ahead of a known pending order. A sandwich attack is one form of it, in which a bot buys before your swap and sells after it.

Continue Reading
not-found
calendar 5 December 2026
Rate this article

Leave a Reply

Your email address will not be published. Required fields are marked *

No thanks

Aron’s Golden Yalda 30 Nov – 31 Dec 2026

At Aron Yalda, everyone wins!

Over 1,300 prizes

5 weeks across 4 trading leagues

Join Aron Yalda

Registration opens 27 November 2026

Aron’s Golden Yalda
  • Physical prizes

    Physical prizes

    MacBook, PlayStation
    and Samsung phones

  • Gold bars

    Gold bars

    Prizes in solid gold

  • Prop account discounts

    Prop account discounts

    A special offer for professional traders