New: Introducing the world's first secure touchscreen hardware wallets

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.

Rug Pull

A rug pull is a type of crypto scam when founders of a project bring in investors to inflate the value of a project, but later pull their inflated funds and abandon the project, leaving…

Full definition

Queued Transaction

A queued transaction is a transaction that waits to be validated before it can be available for processing and inclusion in a block.

Full definition

Unconfirmed Transaction

An unconfirmed transaction is any transaction request submitted to the blockchain that is yet to be processed or validated.

Full definition