Cointegrity

Front-running

Web3 / exchanges trading

Front-running is the practice of placing transactions ahead of known pending transactions in the blockchain mempool to profit from anticipated price movements or outcomes. When a trader observes a large pending transaction that will impact prices, they insert their own transaction before it executes, capitalizing on the predicted market shift. This exploits information asymmetry and the transparent nature of blockchain mempools, where pending transactions are visible to network participants before confirmation. Front-running undermines fair market access and can result in significant losses for unsuspecting traders whose transactions are sandwiched between malicious orders.

Example

MEV (Maximal Extractable Value) bots constantly scan Ethereum's mempool for large DEX swaps. When they detect an incoming transaction that will push token prices higher, they insert their own buy orders first, then allow the original transaction to execute at an inflated price, and finally sell at the peak for profit.

Why It Matters

Front-running erodes trust in decentralized exchanges and increases transaction costs through MEV extraction. Understanding this threat helps traders use privacy solutions, batch auctions, or threshold encryption protocols to protect their orders from manipulation and ensure fair execution prices.

Category: exchanges trading, defi

Definition maintained by Cointegrity. See our editorial policy for review standards on regulatory and compliance terms.

Explore the full Web3 Glossary — 2,094+ expert-curated definitions. Need guidance? Talk to our consultants.