How Does a Miner Choose Which Transactions to Include from the Mempool?

Miners typically prioritize transactions offering the highest fee-per-byte (or gas price). Their goal is to maximize the profit from the block reward and transaction fees.

They also check that the transaction is valid and has not been double-spent. The miner's choice is a competitive economic decision, leading to a dynamic fee market.

This selection process determines the order and speed of transaction confirmation.

What Is a ‘Double Spend’ Attack and How Does the Blockchain Prevent It?
What Is ‘Double-Spending’ and Why Is It a Concern?
How Does the Concept of ‘Block Space’ Limit the Number of Transactions Included?
How Does a Miner’s Profit Maximization Goal Relate to the Security of the Network?
What Is Double-Spending and Why Is a 51% Attack Necessary to Execute It?
How Do Transaction Fees Influence the Ordering of Transactions in a Block?
How Does a Node Decide Which Low-Fee Transactions to Drop from Its Mempool?
How Does a Miner Select Which Transactions to Include in a Block?

Glossar