Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Backrunning

Backrunning is a transaction ordering strategy where a searcher submits a transaction to be executed immediately after a known target transaction in the same block, aiming to profit from the state changes it creates.
Chainscore © 2026
definition
BLOCKCHAIN MECHANICS

What is Backrunning?

Backrunning is a strategic transaction ordering technique on blockchains where a user submits a transaction to be executed immediately after a known, pending transaction.

Backrunning is a type of MEV (Maximal Extractable Value) strategy where a participant, often a searcher bot, submits a transaction with the explicit condition that it is placed in the same block directly after a specific target transaction. This is achieved by setting a higher transaction fee and using the block.coinbase or block.prevrandao values from the target transaction as inputs, or by setting a transaction's nonce to follow another from the same account. The goal is to capitalize on the state change created by the initial transaction, such as a large trade on a decentralized exchange (DEX) that shifts an asset's price.

The most common application is DEX arbitrage. For example, if a large buy order on a DEX is pending, it will increase the price of the purchased token. A backrunner can program a bot to detect this pending transaction in the mempool, calculate the profitable arbitrage opportunity across other liquidity pools, and submit its own transaction to buy the token before the price increase and sell it afterward. This activity, while profit-driven, can have positive externalities by helping to correct price discrepancies across markets, a process sometimes referred to as just-in-time liquidity.

Backrunning is distinct from frontrunning, where a transaction is placed before the target transaction. Backrunning is generally considered less malicious, as it does not directly displace or outbid the original transaction. However, it still relies on sophisticated infrastructure for mempool surveillance and high-speed transaction submission. The practice is facilitated by services like Flashbots, which allow searchers to submit transaction bundles to validators privately, reducing network congestion and failed transaction costs associated with public mempool bidding wars.

From a network perspective, backrunning contributes to MEV extraction, which can lead to centralization pressures as only well-capitalized actors with advanced technical resources can compete effectively. It also increases gas fees during periods of high activity. Proposer-Builder Separation (PBS) and other protocol-level designs aim to democratize and redistribute the value captured from these strategies, mitigating their negative impacts while preserving their market efficiency benefits.

how-it-works
MECHANICS

How Backrunning Works

A technical breakdown of the process by which a transaction is strategically placed to execute immediately after a known pending transaction on a blockchain.

Backrunning is a transaction ordering strategy where a user submits a transaction with a higher gas fee to ensure it is included in the same block as, but immediately after, a specific target transaction. This is achieved by monitoring the mempool (the pool of pending transactions) for a known transaction, such as a large token swap on a decentralized exchange (DEX). The backrunner then crafts their own transaction—often an arbitrage or liquidation opportunity triggered by the target's execution—and submits it with a fee high enough to guarantee its placement in the subsequent slot.

The core mechanism relies on the block builder's economic incentive to maximize fees. When a validator or searcher constructs a block, they typically order transactions by descending gas price. By setting a fee just above the target transaction, the backrunner's transaction is positioned directly after it. This sequencing is critical because the backrunner's logic depends on the state change (e.g., a new price) created by the prior transaction. On networks like Ethereum, this process is often automated by sophisticated bots using services like Flashbots to avoid frontrunning and ensure execution.

A canonical example is DEX arbitrage. If a large buy order on a DEX is pending, it will likely move the market price. A backrunner can program a bot to detect this order, calculate the post-trade price discrepancy on another DEX, and submit an arbitrage trade to profit from the temporary imbalance. The success of this operation hinges on atomic composability—the ability for both transactions to be included in the same block, ensuring the calculated opportunity still exists when the backrun executes.

It is crucial to distinguish backrunning from frontrunning, where a transaction is placed before the target. Backrunning is generally considered less malicious, as it does not directly intercept the target transaction but instead reacts to its public outcome. However, it contributes to Maximal Extractable Value (MEV) and can increase network congestion and gas costs for regular users. The practice highlights the importance of transaction ordering in decentralized systems and the ongoing development of solutions like fair sequencing services and encrypted mempools.

key-features
MECHANISM

Key Features of Backrunning

Backrunning is a specific type of MEV (Maximal Extractable Value) strategy where a transaction is submitted to the network with the explicit intent of executing immediately after a known target transaction.

01

Transaction Order Dependency

The core mechanic relies on the order of execution within a block. A backrun transaction is placed in the mempool with a higher gas price than the target, ensuring it is mined in the subsequent block position. This exploits the state change caused by the initial transaction, such as a large DEX swap that moves an asset's price.

  • Key Condition: The backrun must execute in the same block as the target transaction.
  • Purpose: To profit from the arbitrage opportunity or liquidation created by the target's execution.
02

Primary Use Case: DEX Arbitrage

The most common application is on-chain arbitrage. When a large swap on a decentralized exchange (e.g., Uniswap) creates a price discrepancy between pools, a backrunner can:

  • Detect the pending swap in the mempool.
  • Submit a transaction to buy the undervalued asset on one DEX and sell it on another.
  • Profit from the price difference, capturing value that would otherwise remain unrealized.

This activity is often considered beneficial MEV as it helps correct market inefficiencies.

03

Distinction from Frontrunning

It is critical to differentiate backrunning from its adversarial counterpart, frontrunning.

  • Frontrunning: A transaction is placed before the target transaction, often by copying its intent (e.g., sandwich attacking) to profit at the target user's expense.
  • Backrunning: A transaction is placed after the target, capitalizing on the new state it created without directly interfering with its execution.

Backrunning is generally less harmful to the original user, as it does not alter their transaction's outcome.

04

The Role of Searchers & Builders

Backrunning is executed by automated bots known as searchers. They monitor the mempool for profitable opportunities using sophisticated algorithms. Once a target is identified, the searcher:

  1. Simulates the target transaction's outcome.
  2. Constructs a profitable backrun transaction bundle.
  3. Submits this bundle, often via a relay, to a block builder.

The block builder includes both transactions in the correct order to capture the MEV, paying the searcher a portion of the profits.

05

Protocols & Mitigation

The ecosystem has developed protocols to manage and democratize access to backrunning and other MEV.

  • Flashbots SUAVE: A decentralized block-building network that aims to separate transaction ordering from block proposal, creating a more transparent and efficient market for MEV.
  • CoW Swap: Uses batch auctions and settlement via DEX aggregation to prevent predictable on-chain arbitrage, protecting users from value extraction.
  • Private Transaction Pools (RPC): Services like Flashbots Protect allow users to submit transactions directly to builders, hiding them from the public mempool and preventing frontrunning, though backrunning may still occur within the private order flow.
common-examples
TACTICAL PATTERNS

Common Backrunning Examples

Backrunning is not a single strategy but a category of opportunistic transactions. These examples illustrate the most prevalent patterns used by searchers and bots to extract value from pending transactions on public mempools.

01

Arbitrage Execution

The most common form of backrunning, where a searcher profits from price discrepancies across decentralized exchanges (DEXs) after a large pending trade.

  • Mechanism: A large swap on Uniswap is seen in the mempool. A backrunner calculates that this will move the price on Uniswap, creating a profitable arbitrage opportunity against another DEX like SushiSwap or Curve.
  • Action: The backrunner submits a transaction with a higher gas fee, ensuring it is mined immediately after the target trade, capturing the arbitrage spread.
  • Example: A large ETH→USDC trade on Uniswap V3 is pending. A bot backruns it with a complex route: buy the now-cheaper ETH on Uniswap and sell it at the still-higher price on SushiSwap.
02

Liquidation Takedown

Backrunning to trigger and claim the liquidation bonus from an undercollateralized loan position on lending protocols like Aave or Compound.

  • Mechanism: A pending transaction (e.g., a price oracle update or a large trade) will push a borrower's health factor below the liquidation threshold.
  • Action: The backrunner prepares a liquidation transaction. By setting a higher gas fee, they ensure their liquidation executes the moment the target transaction makes the position eligible, beating other liquidators.
  • Key Term: This is often called liquidation racing. The backrunner earns a liquidation penalty (e.g., 5-10%) from the borrower's collateral.
03

NFT Floor Sweeping

Backrunning a large NFT purchase to buy undervalued NFTs from the same collection before the market reacts.

  • Mechanism: A pending transaction to buy a high-value NFT (e.g., a Bored Ape) is detected. This signals increased demand and will likely raise the floor price (lowest listed price) for the entire collection.
  • Action: The backrunner immediately purchases several NFTs listed at the current, lower floor price across markets like Blur or OpenSea, aiming to sell them later at a profit after the pending purchase completes and lifts the market.
  • Risk: The strategy depends on the initial purchase completing and the market reacting as predicted.
04

MEV Sandwich Attack

A predatory form of backrunning (and frontrunning) that extracts value directly from a user's trade by manipulating liquidity around it.

  • Mechanism: A large, naive DEX swap is identified in the mempool. The attacker executes two transactions:
    1. Frontrun: Buys the same asset first, driving its price up.
    2. Backrun: Sells the asset back immediately after the user's trade executes at the inflated price.
  • Result: The user suffers worse execution (slippage), and the attacker profits from the artificial price movement they created. This is a classic Maximal Extractable Value (MEV) strategy.
05

Governance Proposal Sniping

Backrunning the creation of a new governance proposal to acquire voting power or influence the outcome.

  • Mechanism: A governance proposal is submitted to a DAO (e.g., Uniswap, Compound). The proposal may include a snapshot of token holdings at a specific block to determine voting rights.
  • Action: A participant who wants to influence the vote quickly acquires more governance tokens (e.g., UNI, COMP) in a transaction that executes just after the proposal is posted but before the snapshot block.
  • Goal: To increase their voting weight or meet a minimum proposal threshold, affecting the democratic process.
06

Oracle Price Manipulation

Backrunning transactions that will update an oracle price, then taking positions that benefit from the new price.

  • Mechanism: Many DeFi protocols use oracles like Chainlink or custom DEX-based price feeds that update periodically. A transaction that will trigger a price update (like a large trade on the reference DEX) is seen in the mempool.
  • Action: The backrunner takes out a loan or opens a leveraged position on a lending/derivatives platform that will reprice based on the incoming oracle update. They profit from the known, imminent price change.
  • Defense: Protocols use oracle delay mechanisms (e.g., time-weighted average prices) to mitigate this.
STRATEGY COMPARISON

Backrunning vs. Other MEV Strategies

A comparison of key operational characteristics and risk profiles for major MEV extraction strategies.

Feature / MetricBackrunningFrontrunningSandwich Trading

Primary Trigger

Observed on-chain transaction

Pending transaction in mempool

Pending transaction in mempool

Execution Position

After the target transaction

Before the target transaction

Before and after the target transaction

Core Mechanism

Arbitrage on resulting state change

Transaction priority competition

Price impact manipulation around a trade

User Impact

Typically neutral or positive (price improvement)

Negative (increased gas costs, failed transactions)

Strongly negative (slippage, worse execution price)

Extraction Source

Inefficient market pricing after a swap

Value of information (alpha) in the mempool

Slippage extracted from a victim's trade

Typical Profit Range

$10 - $500

$50 - $5,000+

$100 - $10,000+

Blockchain Consensus Risk

Low

High (requires out-of-band payments)

Medium to High

Common Detection

On-chain analysis of transaction ordering

Mempool monitoring

Slippage analysis and failed transactions

ecosystem-impact
BLOCKCHAIN MECHANICS

Impact on the Blockchain Ecosystem

Backrunning is a specific type of Maximal Extractable Value (MEV) strategy that has significant implications for network fairness, user experience, and protocol design.

Backrunning is the practice of placing a transaction that executes immediately after a known pending transaction in a block, typically to profit from the state changes it creates. Unlike frontrunning, which seeks to get ahead of a target transaction, a backrun is a non-interfering, reactive trade. This is most commonly seen with DEX arbitrage, where a bot detects a large swap on a decentralized exchange that will move the price of an asset and submits its own transaction to buy the asset at the old price and sell at the new one, capturing the spread. The strategy relies on paying higher gas fees to ensure the miner or validator includes the backrun transaction in the same block, directly after the target.

The ecosystem impact of backrunning is multifaceted. For users, it can lead to slippage and worse execution prices, as the backrun transaction consumes liquidity immediately after their trade. However, it also provides a crucial liquidity rebalancing service, ensuring prices across different DEX pools remain aligned, which benefits the overall efficiency of decentralized finance (DeFi). The profits from backrunning are a primary component of MEV revenue, which is often captured by specialized searchers and, through mechanisms like MEV-Boost on Ethereum, shared with validators via priority fees. This creates a complex economic layer atop block production.

Protocols and developers actively design systems to mitigate negative externalities from backrunning. Solutions include commit-reveal schemes, where transaction details are hidden until execution, and Fair Sequencing Services (FSS) that use decentralized mechanisms to order transactions. The prevalence of backrunning has also driven the adoption of private transaction pools (like Flashbots Protect) where users can submit transactions without exposing them to the public mempool, thereby preventing easy exploitation by generalized backrunning bots. These innovations highlight the ongoing arms race between profit-seeking MEV extraction and the pursuit of a fairer transaction ordering process.

security-considerations
BACKRUNNING

Security and Ethical Considerations

Backrunning is a type of Maximal Extractable Value (MEV) strategy where a transaction is submitted to the blockchain immediately after a known pending transaction, typically to profit from its execution effects. While a core mechanism of permissionless systems, it raises significant security and fairness concerns.

01

The Core Mechanism

Backrunning exploits the public mempool. A searcher (or bot) monitors for a target transaction, like a large DEX swap that will move the price. They then programmatically submit their own transaction with a higher gas fee, ensuring it is included in the next block immediately after the target. This allows them to execute an arbitrage, liquidation, or other profitable action based on the new state.

02

Ethical Gray Area: Parasitic vs. Useful

Not all backrunning is malicious. The ethical line is often drawn between parasitic and useful extraction.

  • Useful Backrunning: Provides a net benefit, like closing an arbitrage opportunity between DEXs, which improves market efficiency and liquidity.
  • Parasitic Backrunning: Extracts value without providing a clear benefit, such as sandwich attacking a user's trade or frontrunning governance votes. This is viewed as a tax on users.
03

Security & User Impact

Backrunning directly impacts end-user security and experience.

  • Financial Loss: Users suffer from slippage and worse prices due to sandwich attacks.
  • Transaction Failures: Can cause user transactions to revert if market conditions change too drastically post-backrun.
  • Network Congestion: Contributes to gas price auctions, increasing costs for all network participants.
  • Centralization Pressure: The need for sophisticated MEV infrastructure favors large, professional operators over regular users.
04

Mitigation Strategies

Several protocol-level and user-level strategies exist to mitigate negative backrunning.

  • Private Transactions: Using services like Flashbots Protect or Tornado Cash to submit transactions directly to builders, bypassing the public mempool.
  • Commit-Reveal Schemes: Hiding transaction intent until it is too late to frontrun.
  • Fair Sequencing Services: Proposed L2 solutions that order transactions fairly to prevent MEV extraction.
  • Slippage Tolerance: Users setting lower, more precise slippage limits on DEX trades to avoid being sandwiched.
05

Regulatory and Legal Ambiguity

The legal status of backrunning is undefined and varies by jurisdiction. Regulators may view certain forms as:

  • Market Manipulation: Similar to traditional finance offenses like spoofing or layering.
  • Unauthorized Access: If it involves exploiting a protocol bug or access control flaw.
  • Breach of Fiduciary Duty: For validators or block builders who prioritize their own backrun transactions. This uncertainty creates significant compliance risk for institutional participants.
06

Related Concept: Frontrunning

Frontrunning is the related but distinct practice of submitting a transaction before a known pending transaction. It is often more damaging than backrunning, as it can preempt the original transaction, causing it to fail or execute at a worse price. Both practices are subsets of MEV and share similar mitigation techniques, but frontrunning is generally considered more aggressive and unethical.

BLOCKCHAIN MECHANICS

Frequently Asked Questions About Backrunning

Backrunning is a sophisticated transaction ordering strategy in decentralized finance. This FAQ addresses its core mechanics, economic implications, and relationship to other forms of MEV.

Backrunning is a type of Maximal Extractable Value (MEV) strategy where a searcher's transaction is deliberately placed after a known target transaction in the same block to profit from the state changes it creates. It works by monitoring the public mempool for high-impact transactions, such as large swaps or liquidations, and then submitting a follow-up transaction that capitalizes on the resulting price movement or arbitrage opportunity. For example, after a large DEX swap pushes the price of an asset, a backrunner can execute an arbitrage trade against other liquidity pools to capture the price difference. Unlike frontrunning, which executes before the target, backrunning is generally considered less harmful as it does not alter the outcome for the original user.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team