Skip to main content

What Determines the Order of Transactions Selected from the Mempool?

The primary factor determining the order of transactions selected from the public mempool by a validator is the transaction fee, commonly known as the gas fee. Validators are profit-driven and prioritize transactions that offer the highest fee per unit of gas used.

This "priority gas auction" system is what enables front-running: a malicious actor simply pays a higher gas fee than the target transaction to ensure their trade is included and executed first. Other factors, like the transaction's time of submission, are secondary.

How Does EIP-1559 Affect Gas Fee Calculation?
How Do Higher Gas Fees Influence Transaction Ordering in a Mempool?
How Has Ethereum’s EIP-1559 Changed the Dynamics of Gas Fee Bidding?
Can a Transaction with a Low Gas Fee Still Be Front-Run?