What is MEV in Crypto?

What is MEV in Crypto?

Blockchains, much like free markets, harbor inefficiencies. For markets to function optimally, these inefficiencies need to be exploited—a concept mirrored in the blockchain through what is known as Maximal Extractable Value (MEV). MEV refers to the potential profits that miners and validators can gain by manipulating transaction orders within a block. This practice is crucial for optimizing the network's profitability and efficiency.

In the blockchain ecosystem, transactions awaiting confirmation are stored in a public waiting area known as the "mempool". Miners and validators can extract value from these pending transactions by choosing to include, exclude, or reorder them before creating a block. This block is then validated and added to the blockchain. Such activities not only ensure block optimization but also open up avenues for profit through MEV.

Although MEV can enhance network efficiency, it also carries potential risks. For example, certain MEV strategies can be detrimental to user experience by prioritizing profit over transaction integrity. The phenomenon is predominantly associated with Ethereum due to its support for smart contracts, which provide fertile ground for MEV strategies. However, it is important to note that MEV is not exclusive to Ethereum; it is present in every blockchain that supports smart contracts, though it is less lucrative on platforms like Bitcoin, which lacks smart contract functionality.

What is MEV?

Maximal Extractable Value (MEV) has emerged as a significant concept in the blockchain and crypto trading world, often described as an "invisible tax" that miners or network participants can impose on users. It represents the potential profit that can be earned from manipulating the order of transactions during block production.

The term "MEV" was originally coined in a 2019 paper by smart contract researcher Phil Daian and his colleagues in their work titled "Flash Boys 2.0", which discussed the ethical and technical implications of transaction manipulation. However, the idea itself was first hinted at in 2014 by an algorithmic trader known by the pseudonym Pmcgoohan on Reddit, who expressed concerns about miners potentially rearranging transactions for personal gain.

MEV involves several tactics, including transaction reordering in the mempool—where transactions wait before being added to the blockchain. This can lead to front running, where miners execute their transactions first based on the knowledge of pending transactions, potentially affecting the market dynamics unfavorably for regular users.

As of early 2020, over $674 million has reportedly been extracted through such manipulations on the Ethereum blockchain, indicating the scale and profitability of MEV. Although the term came into broader recognition and usage around 2019, it has quickly become a critical topic in discussions surrounding decentralized finance (DeFi) and network security, particularly on Ethereum, which provides a conducive environment for such activities due to its complex transaction landscape and smart contract capabilities.

The growing understanding and exploration of MEV highlight its potential impacts—not just on market fairness and transparency but also on the overall security and efficiency of decentralized networks. As the blockchain community continues to grapple with these challenges, MEV remains a pivotal area of research and debate.

How does extracting MEV work?

Maximal Extractable Value (MEV) originated in the context of decentralized finance (DeFi) and has become a significant aspect of blockchain network dynamics, particularly on Ethereum. MEV refers to the potential profit that miners or validators can secure by manipulating the order of transactions during block production. Initially, when Ethereum operated under a proof-of-work (PoW) system, the term was known as "miner extractable value," reflecting the miners' ability to reorder transactions within a block to their financial advantage.

With Ethereum's transition to proof-of-stake (PoS) in late 2022, a process known as "The Merge," the practice of extracting value continued, leading to the broader term "maximal extractable value." This reflects the ongoing ability of validators, not just miners, to influence transaction order for profit. Despite the change in consensus mechanism, the core concept of MEV remains: it involves the strategic ordering of transactions to capitalize on arbitrage opportunities, front-running, and other profit-maximizing strategies within blocks.

MEV is calculated by considering various factors, including the timing and sequence of transactions. Miners or validators look to maximize their profits by optimizing the order of transactions, exploiting price differentials on decentralized exchanges, and leveraging network congestion, which often leads to increased transaction fees. During periods of high congestion, miners may prioritize transactions that offer higher fees, thereby enhancing their financial returns from MEV.

The phenomenon of MEV raises several concerns within the blockchain community, particularly regarding fairness and transparency. It can lead to situations where certain transactions are prioritized over others based on the financial gain they offer to miners or validators, potentially compromising the impartiality and integrity of the blockchain. Additionally, MEV can impact the finality and outcome of transactions, as the reordering may alter the sequence in which transactions are confirmed, affecting users' experiences and trust in the system.

As blockchain technology and the DeFi landscape continue to evolve, understanding and addressing the implications of MEV remain crucial for maintaining the security, efficiency, and fairness of decentralized networks.

Types of MEV Attacks and Their Impact

Maximal Extractable Value (MEV) attacks utilize various methods to exploit blockchain transactions, notably impacting Ethereum's decentralized finance (DeFi) landscape. Among the most prevalent MEV attacks are front-running exploits and sandwich attacks.

  • Front-running Exploits: These occur when perpetrators, using automated bots, detect profitable pending transactions in the mempool—the waiting area for all unconfirmed transactions. These bots, often called "generalized front-runners," identify a profitable transaction and quickly place an identical one with a higher gas fee, ensuring their transaction is processed first. This strategy enables them to capitalize on price movements before the original transaction is executed. For instance, a trader might detect a large buy order for a cryptocurrency and place their buy order at a slightly higher price, benefiting from the subsequent price surge.
  • Sandwich Attacks: This type of attack happens when a malicious actor places their own transaction between two legitimate ones, manipulating the market for personal gain. For example, if a large sell order is followed by a small buy order on a decentralized exchange (DEX), an attacker might insert a sell order just before the buy order to profit from price manipulations caused by their actions.

Flashbots provide a more secretive approach to MEV extraction, offering a platform where Ethereum users and miners can privately negotiate the order of transactions within a block. This initiative aims to create a fairer ecosystem for MEV extraction by reducing the impact of harmful strategies like generalized front-runners.

  • DEX Arbitrage: In decentralized finance, arbitrage opportunities arise when there's a price difference for the same token across various decentralized exchanges (DEXs). MEV bots exploit these discrepancies by purchasing tokens at a lower price on one exchange and immediately selling them on another where the price is higher. This not only generates profit for the bot operator but also helps in aligning token prices across different platforms, thereby enhancing market efficiency. This method, although competitive, can yield significant returns as evidenced by an instance in August 2020 where a trader made a net profit of $40,000 by exploiting the price difference between stablecoins on several DEXs.
  • Liquidation: This MEV strategy involves the DeFi lending protocols where users must deposit cryptocurrency as collateral for loans. If a loan becomes undercollateralized, typically due to a drop in the value of the collateral, the protocol allows it to be liquidated. MEV searchers use bots to monitor these loans and quickly execute liquidations when they become viable, earning liquidation fees in the process. This not only provides an incentive for maintaining the financial stability of the lending platform but also poses a competitive environment where multiple bots may attempt to be the first to trigger a liquidation.

These MEV strategies highlight the competitive and often secretive nature of transaction ordering on blockchains, presenting both challenges and opportunities for market participants. They raise significant concerns about market fairness and transparency, as they can manipulate prices, affect transaction finality, and create an uneven playing field among traders and investors.


Benefits of MEV

Maximal Extractable Value (MEV) arises from the decentralized architecture of blockchain technology, which inherently lacks a central authority to dictate transaction order. This feature of blockchain allows miners or validators the opportunity to engage in activities akin to front-running, where they can prioritize certain transactions over others for personal gain.

Financial Gain Through Transaction Prioritization: One prevalent form of MEV is the front-running of transactions in decentralized finance (DeFi). DeFi platforms enable various financial operations such as trading, lending, and borrowing without intermediaries. Transactions on these platforms are public, allowing miners to observe and reorder them to capitalize on resultant price movements. For instance, by detecting a large trade about to occur, a miner might place an order ahead of it to profit from the price change this trade will cause.

Manipulation of Blockchain Consensus: In proof-of-work (PoW) systems like the early versions of Bitcoin and Ethereum, miners solve complex mathematical puzzles to validate transactions and add them to the blockchain. They choose which transactions to include in a block and the sequence of these transactions. This control over transaction order allows miners to extract value in several ways:

  • Financial Gains: Miners can exploit their position to benefit from price differences and market dynamics. In cryptocurrency markets, where prices can swing rapidly, even minor advantages can translate into substantial profits.
  • Competitive Advantage: Strategic transaction inclusion and ordering not only increase a miner's profits but also enhance their influence over the network. Miners can gain an edge by strategically placing their transactions, performing transaction censorship, or manipulating the transaction flow to increase their mining rewards.

The transition of Ethereum from PoW to proof-of-stake (PoS) during "The Merge" altered the landscape slightly but did not eliminate MEV opportunities. Validators in PoS can similarly influence transaction order, continuing to benefit from the mechanisms of MEV.

Advantages for the Network: Despite its potential for misuse, MEV can also contribute positively to blockchain ecosystems. By exploiting arbitrage opportunities and transaction efficiencies, MEV practices can lead to more accurate pricing of assets and more efficient market behaviors. Additionally, the competitive nature of mining and validating encourages continual improvements and innovations in network operations and security.

Overall, while MEV poses challenges in terms of fairness and transparency, it also underscores the dynamic and competitive spirit of blockchain technology, driving both economic efficiency and innovation within the ecosystem.


Maximal Extractable Value (MEV) presents a multifaceted challenge and opportunity within the blockchain ecosystem, affecting transaction dynamics, network congestion, and gas prices. MEV extraction techniques such as front-running and sandwich attacks can negatively impact the network by increasing congestion and elevating gas prices, which adversely affects other users. However, not all MEV methods have detrimental effects; for instance, DEX arbitrage helps in balancing prices across exchanges, leading to fairer pricing for users.

Despite its challenges, MEV also brings certain advantages. It can incentivize more entities to participate in network validation and maintain blockchain security. However, the ambiguous nature of MEV—being both potentially exploitative and beneficial—necessitates the development of solutions that make MEV extraction more accessible, censorship-resistant, non-malicious, and democratized. Although eliminating MEV entirely may not be feasible, ongoing research focuses on minimizing its negative impacts to better serve the blockchain community.

Moreover, the evolution of blockchain technology, such as advancements in parallel execution and modular blockchains, is likely to alter the way MEV is captured, prompting further research and potentially leading to breakthroughs in how it is managed.

As the landscape of cryptocurrency continues to evolve, understanding and addressing MEV is crucial. Being proactive in learning about and implementing strategies to mitigate MEV's adverse effects is vital for safeguarding digital assets. By staying informed and engaging in innovative solutions, participants can contribute to creating a safer and more equitable ecosystem. Embrace the ongoing challenge, empower yourself with knowledge, and play a proactive role in shaping a resilient future for decentralized finance.


Please note that Plisio also offers you:

Create Crypto Invoices in 2 Clicks and Accept Crypto Donations

12 integrations

6 libraries for the most popular programming languages

19 cryptocurrencies and 12 blockchains

Ready to Get Started?

Create an account and start accepting payments – no contracts or KYC required. Or, contact us to design a custom package for your business.

Make first step

Always know what you pay

Integrated per-transaction pricing with no hidden fees

Start your integration

Set up Plisio swiftly in just 10 minutes.