Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Transaction Selection

Transaction selection is the process by which a block builder chooses which pending transactions from the mempool to include and order within a new block.
Chainscore © 2026
definition
BLOCKCHAIN CONSENSUS

What is Transaction Selection?

The process by which validators or miners choose which pending transactions to include in the next block.

Transaction selection is the critical consensus-layer mechanism where a block producer chooses a subset of pending transactions from the mempool to form a candidate block. This is not a random process but a strategic one governed by protocol rules and economic incentives, primarily the pursuit of maximizing fees or adhering to specific ordering policies like First-In-First-Out (FIFO). The chosen set directly determines the block's composition, fee revenue for the producer, and the execution state for the network.

The dominant strategy in networks like Ethereum and Bitcoin is fee-based selection, where validators prioritize transactions with the highest gas fees or transaction fees per unit of block space (e.g., gas per gasLimit). This creates a competitive marketplace for block space. However, other methodologies exist, such as First-Come-First-Served (FCFS), used in some decentralized exchange mempools, or privacy-preserving techniques like coin mixing that obfuscate the selection logic to prevent front-running.

This process has profound implications for network performance and user experience. Inefficient or manipulable selection can lead to network congestion, unpredictable confirmation times, and exploitation through tactics like Maximum Extractable Value (MEV). For instance, a validator might use front-running to reorder transactions for arbitrage profit. Consequently, improving selection algorithms—through concepts like credible commitment or proposer-builder separation (PBS)—is a major focus of blockchain research to enhance fairness and efficiency.

Different blockchain architectures implement distinct selection rules. Ethereum validators, post-Merge, use a fee market where users bid via priority fees (maxPriorityFeePerGas). Solana employs a localized fee-market mechanism where fees are quoted in micro-lamports. Bitcoin miners typically select transactions based on fee rate (satoshis per virtual byte). Understanding a chain's specific selection logic is essential for developers to estimate costs and for users to have their transactions processed promptly.

The future of transaction selection involves more sophisticated and fair systems. Proposals like MEV-Boost on Ethereum separate the roles of block builder and block proposer, allowing for specialized, competitive markets in transaction ordering. Research into encrypted mempools and fair ordering protocols aims to mitigate the negative externalities of purely economic selection, striving for a balance between validator revenue, network throughput, and censorship resistance.

how-it-works
BLOCKCHAIN MECHANICS

How Transaction Selection Works

Transaction selection is the process by which network validators, such as miners or stakers, choose which pending transactions to include in the next block, governed by economic incentives and network rules.

Transaction selection, often called transaction prioritization or mempool management, is a critical consensus-layer function. When a user broadcasts a transaction, it enters a peer-to-peer network and lands in a temporary holding area called the mempool (memory pool). Validators, who are responsible for proposing new blocks, continuously monitor their local mempools. Their primary objective is to construct a block that maximizes their rewards, which typically consist of the block subsidy (newly minted coins) and the sum of all transaction fees from the included transactions. This creates a competitive, fee-based marketplace for block space.

The dominant selection algorithm is a fee-based auction. Validators generally prioritize transactions offering the highest fee per unit of gas (on Ethereum) or fee per virtual byte (on Bitcoin), as these provide the greatest reward for the limited block space they consume. Sophisticated validators run algorithms like a greedy knapsack algorithm to pack the most valuable set of transactions into a block without exceeding the block's gas or size limit. This process is not purely mechanical; validators may also apply local policies, such as filtering out transactions from certain addresses or enforcing minimum fee thresholds.

Several nuanced factors influence selection beyond simple fee rates. Transaction dependencies must be respected—a transaction that spends an output from an unconfirmed parent transaction cannot be included alone. Some networks implement rules like Replace-By-Fee (RBF) or have package relay policies that affect how transactions can be replaced or bundled. Furthermore, MEV (Maximal Extractable Value) searchers can profoundly influence selection by paying exceptionally high fees to have their complex, multi-transaction bundles—designed for arbitrage or liquidation—included in a specific order, often using private relay networks to bypass the public mempool.

The outcome of transaction selection has direct implications for users and network health. Users who pay insufficient fees may experience transaction starvation, where their transactions are stuck in the mempool for hours or days. During periods of high demand, this fee auction can lead to volatile and expensive gas prices. From a network perspective, efficient and predictable transaction selection is essential for throughput and user experience. Proposals like Ethereum's EIP-1559 introduce a base fee mechanism to make fee estimation more stable, but the core auction-based selection for priority fees remains.

key-features
MEMPOOL MECHANICS

Key Features of Transaction Selection

Transaction selection is the process by which nodes or validators choose which pending transactions from the mempool to include in the next block, governed by specific rules and incentives.

01

Fee-Priority (Gas Price) Sorting

The most common selection method is a first-price auction, where transactions are ordered by their offered gas price or priority fee. Validators maximize their revenue by selecting the highest-paying transactions first. This creates a competitive fee market, especially during network congestion. For example, in Ethereum's post-EIP-1559 model, users specify a max priority fee for the validator and a max fee for the base fee burn.

02

Maximum Extractable Value (MEV)

Validators and specialized searchers reorder, include, or exclude transactions to capture Maximum Extractable Value (MEV). This profit-seeking behavior fundamentally influences selection. Common strategies include:

  • Arbitrage: Exploiting price differences across DEXs.
  • Liquidations: Triggering and capturing liquidation bonuses in lending protocols.
  • Frontrunning: Placing a transaction ahead of a known future trade. This creates a complex, off-chain auction for block space beyond simple gas fees.
03

Block Gas Limit Constraint

Every block has a gas limit, a hard cap on the total computational work it can contain. The selection algorithm must pack transactions without exceeding this limit. This is a classic knapsack problem, where validators aim to maximize fee revenue per gas unit within the finite space. On networks like Ethereum, this limit is dynamically adjusted by validators based on network demand.

04

Nonce Sequencing & Dependency

Transactions from a single account must be processed in strict order based on a nonce, a sequential number. The selection logic must respect this. If a transaction with a higher nonce is available but the preceding one is missing, it cannot be included, creating transaction dependency. Builders must ensure all prior nonces for an account are in the chain or included in the same block to make a dependent transaction valid.

05

Censorship Resistance & Inclusion

A core blockchain property is that no single entity should be able to indefinitely censor valid transactions. Selection mechanisms must allow for eventual inclusion, often enforced by peer-to-peer gossip protocols and, in some designs like Ethereum's proposer-builder separation (PBS), through crlists (censorship resistance lists). These are commitments by block builders to include certain transactions, making censorship detectable and punishable.

06

Time-Based Fair Ordering

Some consensus mechanisms, like Avalanche's or Solana's, incorporate transaction timestamps or a proof-of-history to enforce a more objective, time-based ordering. This aims to reduce the advantage of network proximity in mempool access and mitigate certain forms of MEV, such as pure frontrunning, by providing a canonical sequence based on when transactions were first observed by the network.

MEMPOOL MANAGEMENT

Common Transaction Selection Strategies

Comparison of core algorithms used by validators and block builders to select transactions from the mempool for inclusion in a block.

StrategyDescriptionPrimary GoalComplexityMEV Impact

First-In-First-Out (FIFO)

Processes transactions in the order they are received.

Fairness / Simplicity

Low

Low

Highest Fee / Gas Price

Prioritizes transactions offering the highest fee per gas unit (tip + base fee).

Validator Revenue Maximization

Low

Medium

MEV-Boost / PBS

Outsources block building to specialized searchers via a marketplace.

Maximize Revenue via MEV Extraction

High

High

Time Boost (EIP-4844)

Prioritizes transactions with an additional fee for faster inclusion in a data blob.

Data Availability Scheduling

Medium

Low

Custom Private Orderflow

Uses exclusive transaction flow (e.g., from a specific exchange) to capture arbitrage.

Capture Private MEV

High

High

CFMM Arbitrage Bundling

Seeks and bundles profitable arbitrage opportunities across decentralized exchanges.

Extract On-Chain MEV

High

High

ecosystem-usage
MEMPOOL MECHANICS

Transaction Selection in Practice

Transaction selection is the process by which network validators choose which pending transactions to include in the next block. This critical mechanism determines network throughput, user experience, and fee economics.

01

First-Price Auction (Ethereum Pre-1559)

Users submit transactions with a gas price bid. Validators (miners) select transactions to maximize their fee revenue, typically in descending order of gas price. This created a volatile and inefficient fee market where users often overpaid.

  • Mechanism: Simple highest-bid-wins.
  • Problem: 'Winner's Curse' and fee estimation guesswork.
02

EIP-1559 Fee Market

Introduced a base fee (burned) and priority tip. The protocol targets a block size and dynamically adjusts the base fee based on network congestion. Validators select transactions where max fee >= base fee + tip, ordering by the tip amount.

  • Base Fee: Burned, regulates supply.
  • Priority Tip: Paid to validator for inclusion.
  • Result: More predictable fee estimation.
03

Maximal Extractable Value (MEV)

The profit a validator can extract by reordering, including, or censoring transactions within a block, beyond standard block rewards and gas fees. This creates a sophisticated transaction selection game.

  • Sources: Arbitrage, liquidations, frontrunning.
  • Tools: MEV-Boost (Ethereum) allows validators to outsource block building to specialized searchers and builders who compete in a separate auction.
04

Time-Based Ordering (Solana)

Uses a localized fee market and a Gulf Stream mempool-less protocol. Transactions are propagated with a recent blockhash and are valid for a short period. Leaders (validators) process transactions based on a deterministic order, attempting first-come-first-served inclusion.

  • Goal: Reduce MEV and frontrunning opportunities.
  • Challenge: Requires extremely high throughput and low latency.
05

Proposer-Builder Separation (PBS)

A design pattern that separates the role of block proposer (validator) from block builder. Builders construct full, optimized blocks in a competitive market and bid for the right to have their block proposed.

  • Purpose: Democratize MEV, reduce validator centralization risk, and improve censorship resistance.
  • Implementation: MEV-Boost is an interim, out-of-protocol PBS on Ethereum.
06

Fee Estimation Algorithms

Wallets and users rely on algorithms to suggest optimal gas parameters. These analyze the mempool, recent block history, and network conditions.

  • Methods: Percentile analysis of pending transactions, machine learning models.
  • Services: Often provided by RPC endpoints (e.g., eth_gasPrice, eth_feeHistory).
  • Goal: Balance speed of inclusion with cost efficiency for the user.
security-considerations
TRANSACTION SELECTION

Security & Economic Considerations

The process by which network participants choose which pending transactions to include in a block, a critical mechanism that determines network security, user costs, and validator/miner incentives.

02

Priority Gas Auction (PGA)

A competitive bidding war where searchers (bots seeking MEV) submit identical transactions with escalating gas prices to incentivize a block producer to include their transaction first. This occurs when multiple parties identify the same profitable MEV opportunity (e.g., arbitrage). PGAs drive up network gas fees temporarily and are a primary mechanism for MEV redistribution from searchers to validators/miners.

03

First-Price vs. EIP-1559 Auctions

Two primary models for transaction fee markets:

  • First-Price Auction: Users bid a gas price, paying exactly what they bid. This leads to inefficiency and fee guessing.
  • EIP-1559 (Base + Tip): Introduced by Ethereum, this uses a protocol-determined base fee (burned) and an optional priority fee (tip) for block producers. It provides better fee estimation and reduces the volatility of transaction costs, while burning the base fee introduces a deflationary pressure on ETH.
04

Time-Bandit Attacks

A security attack where a miner or validator attempts to reorganize the blockchain (reorg) to capture MEV from past blocks. The attacker mines a secret chain, observes profitable MEV opportunities that were mined by others, and then creates an alternative block that includes those profitable transactions for themselves. This undermines blockchain finality and is mitigated by mechanisms like proposer-boost in Ethereum's consensus.

06

Economic Security & Bribe Attacks

Transaction selection directly impacts blockchain security through bribe attacks. A malicious actor can bribe a majority of block producers (via exceptionally high transaction fees) to censor specific transactions or include invalid ones. The cost of such an attack is bounded by the block producers' opportunity cost—the rewards they would forfeit by acting honestly. Robust, decentralized validator sets with high staking costs are essential to make these attacks economically prohibitive.

evolution-post-merge
BLOCK PRODUCTION

Evolution: From Miners to Proposer-Builder Separation

The fundamental shift in how blocks are assembled and validated, moving from a monolithic miner model to a specialized market for block construction.

Transaction selection is the process by which a network participant chooses which pending transactions to include in a new block and in what order, a critical function that determines transaction fees, network latency, and censorship resistance. In early blockchain designs like Bitcoin, this role was performed monolithically by miners, who solved the Proof-of-Work puzzle, selected transactions from the mempool, and published the final block. This model concentrated both economic and technical decisions—such as fee maximization and transaction ordering—within a single entity, creating a potential centralization point for Maximal Extractable Value (MEV) extraction.

The rise of sophisticated MEV strategies, like front-running and back-running, exposed the limitations of the miner model, as specialized bots could outbid regular users for block space. This led to the development of Proposer-Builder Separation (PBS), a design paradigm that decouples the roles of block proposal and block construction. In PBS, specialized actors called block builders compete in an auction to create the most profitable block bundle, which is then sold to a block proposer (e.g., an Ethereum validator) who simply attests to and publishes it. This separation creates a competitive market for block space, theoretically improving efficiency and reducing the centralization risks associated with in-house MEV extraction by validators.

PBS is implemented through protocols like mev-boost on Ethereum, where builders submit sealed bids (execution payloads) to a relay, which then delivers the highest-bid bundle to the proposer. This evolution transforms transaction selection from a hidden, integrated process into a transparent, auction-based marketplace. While PBS mitigates validator centralization, it introduces new actors and potential trust assumptions, such as the reliance on honest relays to correctly mediate the auction. The ongoing development of enshrined PBS aims to formalize these mechanisms directly within the blockchain protocol for greater security and decentralization.

TRANSACTION SELECTION

Frequently Asked Questions (FAQ)

Common questions about how transactions are chosen, prioritized, and included in a block by validators and miners.

Transaction selection is the process by which a network validator or miner chooses which pending transactions from the mempool to include in the next block they propose. The primary mechanism is a fee market, where users attach a transaction fee (or gas price) as an incentive. The validator's node typically selects transactions with the highest fees per unit of computational work (gas) first, as this maximizes their reward. This creates a priority queue, ensuring the network's limited block space is allocated to those willing to pay the most. On Ethereum, this is managed by the execution client (e.g., Geth, Nethermind) using algorithms to build a profitable and valid block.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team