LAST CHANCE BLACK FRIDAY: Save now on Ledger hardware wallets and accessories.

Shop now

Up your Web3 game

Ledger Academy Quests

  • Test your knowledge
  • Earn POK NFTs
Play now See all quests

Front Running Meaning

Mar 8, 2024 | Updated Mar 13, 2024
Front running is the act of utilizing advanced knowledge about pending transactions to place one's transaction before the original trades are executed.

What Is Front Running?

In conventional markets, front running is the illegal practice that involves a broker exploiting early access (or insider information) to impending trade orders. Such practice allows the broker to execute their own trades ahead of the existing ones. This dishonest behavior gives the front-runners an unfair edge over other market participants, allowing them to capitalize on anticipated market shifts. 

In the blockchain context, network participants known as validators or miners can access mempools. A mempool is simply the temporary waiting area or queue for pending or unconfirmed transactions. And since the validators are responsible for verifying and confirming them, they can reorganize, omit, or include the transactions based on the incentive. Front-running occurs when the miners or validators use their knowledge of the mempool to place their own transactions based on the pending transactions.

For example, assume that Jane places a genuine large buy order for a particular cryptocurrency. The transaction is sent to the network nodes’ mempools, making it visible to other market participants. This advanced knowledge allows these participants to quickly insert and confirm their buy orders for the same crypto before Jane’s order is executed. Furthermore, automated trading bots often execute front-running attacks by offering higher gas fees than the original trade. By paying higher fees, the validators are incentivized to process these transactions ahead of the pending transactions. The traders benefit from the arbitrage. 

This form of attack is also common in NFT marketplaces, where the trader with insider information purchases an NFT before it launches. The trader sells the NFT once publicly available, gaining from the price increase.

Nakamoto Coefficient

The Nakamoto Coefficient measures how decentralized a blockchain is by counting the minimum number of independent entities (nodes) required to disrupt or take control of the network.

Full definition

On-Chain

On-chain transactions are transactions that are recorded on the blockchain’s distributed ledger and are publicly accessible to anyone who has a copy of the blockchain’s ledger.

Full definition

Pegged

The term “pegged” describes an asset whose value is attached to the value of another. It is designed to maintain a specific ratio to the designated asset.

Full definition