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

Bundle Merging

Bundle merging is the process by which a block builder combines multiple transaction bundles from different searchers into a single, valid, and profitable block proposal.
Chainscore © 2026
definition
BLOCKCHAIN SCALING

What is Bundle Merging?

Bundle merging is a blockchain scaling technique where multiple independent transaction bundles are combined into a single, larger block for more efficient processing.

Bundle merging is a layer-2 scaling technique, primarily associated with rollups, where multiple independent transaction bundles (often from different sequencers or operators) are aggregated into a single, final block submitted to the base layer (L1). This process, also known as multi-bundle block building, optimizes data compression and gas efficiency by amortizing the fixed cost of L1 publication across a larger set of transactions. It is a core mechanism for improving throughput and reducing costs in systems like optimistic rollups and zk-rollups.

The process typically involves a consensus mechanism among bundle producers to agree on the ordering and inclusion of transactions before the merged block is finalized. A central block builder or a decentralized proposer-builder separation (PBS) model may be used to perform the merge. This ensures atomic composability across the merged bundles, meaning transactions from different sources can interact within the same block state. Key goals include minimizing latency for users and maximizing block space utilization on the destination chain.

From a user's perspective, bundle merging is largely transparent but results in lower fees and faster confirmation times. For network operators, it introduces complexities in MEV (Maximal Extractable Value) capture, censorship resistance, and decentralization. Protocols must carefully design their merging logic to prevent malicious actors from dominating block production or excluding certain transactions. Successful implementation is critical for rollups to scale cost-effectively while inheriting the security guarantees of their underlying L1 blockchain.

how-it-works
MECHANISM

How Bundle Merging Works

An explanation of the process where multiple transaction bundles are combined into a single block for execution, a core mechanism in block building for MEV and scaling.

Bundle merging is the process by which a block builder or proposer combines multiple, often competing, transaction bundles from searchers into a single, valid, and profitable block. This is a critical function in proposer-builder separation (PBS) architectures, where specialized builders compete to construct the most valuable block for a validator to propose. The builder's goal is to maximize revenue by intelligently ordering and merging bundles—which may contain MEV (Maximal Extractable Value) opportunities like arbitrage or liquidations—while ensuring the final block does not contain conflicting transactions or exceed gas limits.

The technical challenge of bundle merging involves solving a complex optimization problem. Builders receive bundles that specify conditions like "bundle B must be placed before bundle C" or "this transaction sequence is invalid if another specific transaction is included in the block." The builder's software must evaluate all possible combinations and orderings of received bundles and individual mempool transactions to find the single sequence that yields the highest total tip and MEV revenue. Advanced builders use sophisticated algorithms and simulation to test millions of potential block compositions in milliseconds before committing one to the chain.

For the network, efficient bundle merging optimizes block space utilization and captures value that would otherwise be lost to inefficient ordering. It centralizes the computational complexity of MEV extraction with professional builders, allowing validators to simply propose the most profitable pre-built block. This process is foundational to ecosystems like Ethereum post-Merge, where it interacts with mechanisms like MEV-Boost. The outcome is a single, canonical block where merged bundles from various parties are executed atomically, determining the final state and distributing profits to searchers, builders, and the proposing validator.

key-features
MECHANICAL PROPERTIES

Key Features of Bundle Merging

Bundle merging is a core mechanism in block building that aggregates multiple user transactions into a single, atomic unit for block inclusion. Its key features define its security, efficiency, and economic impact.

01

Atomic Execution

All transactions within a bundle are executed atomically: they either all succeed and are included in a block, or the entire bundle fails and is reverted. This prevents partial execution and is critical for complex DeFi strategies where one transaction's success depends on another's.

02

Transaction Ordering

The searcher (bundle builder) specifies the exact execution order of transactions within the bundle. This control is essential for enabling arbitrage, liquidations, and MEV extraction, as the profitability of these strategies depends on precise sequencing relative to other pending transactions.

03

Searcher-Builder Separation

Bundle merging enforces a clear separation of roles:

  • Searchers discover opportunities and construct bundles.
  • Builders (or block builders) receive bundles and assemble them into candidate blocks. This separation creates a specialized market and prevents builders from front-running their own users.
04

Fee Payment & Incentives

Searchers attach a bid (fee) to their bundle to incentivize a builder to include it. This bid is paid from the searcher's address and is separate from the gas fees of the individual transactions. The builder's profit is the difference between the total bundle bid and the cost to execute it.

05

Simulation & Validity

Before submission, searchers simulate their bundle locally to ensure it is valid and profitable. Builders re-simulate received bundles to verify they execute correctly and do not revert, as a reverted bundle wastes block space and costs the builder revenue.

optimization-challenge
THE OPTIMIZATION CHALLENGE

Bundle Merging

Bundle merging is a sophisticated block-building technique that aggregates multiple transaction bundles from block builders to maximize validator revenue and network efficiency.

Bundle merging is the process by which a block builder, such as a searcher or specialized MEV (Maximal Extractable Value) firm, combines multiple transaction bundles from different sources into a single, more profitable block proposal. This is a critical optimization within the proposer-builder separation (PBS) framework, where specialized builders compete to create the most valuable block for the validator (proposer) to propose. By intelligently selecting and ordering bundles—which may contain arbitrage, liquidations, or complex DeFi interactions—the builder aims to extract the maximum total value, a portion of which is paid to the validator as a priority fee.

The technical challenge of bundle merging lies in resolving conflicts and dependencies between independent bundles. Two bundles might attempt to interact with the same smart contract or liquidity pool in incompatible ways. An advanced builder employs sophisticated algorithms to simulate the state changes of thousands of potential bundle combinations, identifying the most profitable, conflict-free sequence. This process often utilizes a greedy algorithm or more complex combinatorial optimization techniques to navigate the vast search space of possible bundle orderings within the constraints of block gas limits and transaction nonces.

For the network, effective bundle merging enhances capital efficiency by ensuring the most economically valuable transactions are included. It also promotes a competitive builder market, as builders with superior merging algorithms can offer higher bids to validators. However, it centralizes block-building power towards entities with significant computational resources. This optimization is a cornerstone of modern MEV supply chain infrastructure, directly impacting transaction inclusion, gas prices, and the overall economic security of proof-of-stake networks like Ethereum.

ecosystem-usage
BUNDLE MERGING

Ecosystem Usage & Builders

Bundle merging is a critical mechanism for optimizing block space and user experience in high-throughput blockchains. It enables builders and searchers to combine multiple transactions into a single, atomic unit for execution.

01

Core Mechanism

Bundle merging is the process by which a block builder or searcher combines multiple user transactions into a single, atomic bundle for submission to a validator. This allows for complex, interdependent operations—like arbitrage or liquidation—to be executed as a single unit, ensuring all succeed or fail together. It is a foundational technique for MEV extraction and transaction ordering optimization.

02

Role of the Searcher

A searcher is a specialized network participant who scans the mempool and private order flows for profitable opportunities, such as arbitrage or liquidations. They construct a bundle of transactions to capture this value. Using services like a block builder API, they submit this bundle to a builder, who may then merge it with other transactions to construct the most profitable block for a validator.

03

Role of the Block Builder

The block builder is responsible for constructing a candidate block for a validator. They receive transaction bundles from multiple searchers and individual transactions from users. The builder's role is to merge these into a single, optimized block that maximizes revenue (e.g., through priority fees and MEV). Builders use sophisticated algorithms to order transactions, often operating through a builder marketplace like mev-boost on Ethereum.

04

Atomicity & Failure States

A key feature of a merged bundle is atomicity. If any transaction within the bundle fails (e.g., due to slippage or insufficient gas), the entire bundle is reverted, preventing partial execution. This protects searchers from unfavorable outcomes. Builders must simulate bundles to ensure they are valid and profitable before including them in a block proposal.

05

Ecosystem Tools & Infrastructure

A specialized infrastructure layer exists to facilitate bundle merging:

  • Builder APIs: Endpoints (e.g., from Flashbots, BloXroute) for searchers to submit bundles.
  • Relays: Trusted intermediaries that receive blocks from builders and forward them to validators, often verifying content and payments.
  • Simulation Services: Tools that allow searchers to test bundle execution and profitability before live submission.
06

Impact on User Experience

For end-users, bundle merging has dual effects. Positively, it can subsidize gas costs, as searchers pay high fees to have their bundles included. However, it can also lead to frontrunning or sandwich attacks, where a user's transaction is exploited for profit. Protocols like CowSwap use batch auctions and MEV protection to shield users from these negative externalities.

PROPOSER-BUILDER SEPARATION (PBS)

Builder vs. Validator Role in Merging

Comparison of responsibilities and incentives for Builders and Validators in the context of bundle merging and block construction.

Feature / ResponsibilityBuilder RoleValidator Role

Primary Objective

Construct the most profitable block by including bundles and transactions

Propose the most valuable valid block header received from a Builder

Block Construction

Assembles transactions and bundles into a complete block body

Accepts a pre-constructed block body from a Builder

Bundle Inclusion

Selects and orders bundles based on bid value and execution constraints

Accepts the Builder's selection; does not inspect individual bundles

Revenue Source

Extractable Value (MEV) captured from bundles and transaction ordering

Block proposal reward and the Builder's bid (in PBS designs)

Execution Risk

Bears the risk of bundle failure (reverts) and gas optimization

Bears the risk of proposing an invalid block (e.g., containing an invalid bundle)

Required Infrastructure

Sophisticated MEV search, transaction pool access, relay connection

Block validation client, connection to a trusted Relay

Key Decision

Which bundles and transactions to include for maximum profit

Which Builder's block header to select based on the highest bid

Post-Merge Finality

No direct role; block is finalized by the consensus layer

Participates in the consensus protocol to finalize the proposed block

security-considerations
BUNDLE MERGING

Security & Economic Considerations

Bundle merging combines multiple user transactions into a single block submission, creating unique security challenges and economic incentives for builders and validators.

01

Centralization of Block Building

Merging requires sophisticated coordination, favoring large, well-capitalized block builders who can run complex optimization algorithms (e.g., for MEV extraction). This can lead to a builder oligopoly, reducing network resilience and increasing censorship risk as control concentrates in few entities.

02

Validator Incentive Alignment

Validators profit by selling block space to the highest-bidding builder. Bundle merging maximizes this revenue through MEV (Maximal Extractable Value). However, this creates a conflict: validators are incentivized to prioritize builder profit over network health or user experience, potentially accepting bundles with harmful transactions.

03

Transaction Censorship Risk

A dominant builder can censor transactions by excluding them from merged bundles. This is a significant risk for compliance-driven censorship (e.g., OFAC-sanctioned addresses) or competitive censorship. Protocols like Ethereum's proposer-builder separation (PBS) aim to mitigate this by separating block building from block proposal.

04

Economic Attack Vectors

Merging enables complex economic attacks:

  • Time-bandit attacks: Reorganizing the chain to steal MEV from a previously merged bundle.
  • Sandwich attacks: Front-running and back-running user transactions within a bundle.
  • Bid manipulation: Builders may collude to suppress auction prices, reducing validator revenue.
05

User Experience & Fairness

While merging can improve efficiency, it often prioritizes fee-paying transactions. Users without the means to pay high priority fees may experience delays or failure. The opaque nature of bundle construction can also make transaction outcomes unpredictable for ordinary users.

06

Regulatory & Compliance Surface

Merging bundles that include transactions from regulated entities (e.g., centralized exchanges) expands the compliance surface. Builders and validators may face legal pressure to screen and censor transactions, challenging the permissionless and neutral ideals of the base layer.

BUNDLE MERGING

Common Misconceptions

Bundle merging is a complex MEV technique often misunderstood. This section clarifies key technical details and addresses frequent points of confusion for builders and analysts.

Bundle merging is a process where a block builder or searcher combines multiple independent transaction bundles from different submitters into a single, unified bundle for inclusion in a block. It works by a central coordinator (often the builder) analyzing the state transitions and gas requirements of incoming bundles, then constructing a new, non-conflicting sequence that respects dependencies and maximizes total value, typically for the builder's profit. The merged bundle is then submitted to the relay or directly to the validator as a single payload. This is distinct from simple concatenation, as it requires sophisticated simulation to ensure atomic execution and avoid reverts.

BUNDLE MERGING

Frequently Asked Questions

Bundle merging is a core mechanism for optimizing transaction flow and user experience in blockchain networks. These questions address its function, benefits, and technical implementation.

Bundle merging is the process by which a block builder or sequencer aggregates multiple user transactions or intents from a shared mempool into a single, atomic bundle for inclusion in a block. It works by collecting pending transactions, often from private order flows or public channels, and combining them into a unified payload that is then proposed to validators. This mechanism is central to MEV (Maximal Extractable Value) strategies and proposer-builder separation (PBS) architectures, allowing for complex transaction ordering and execution guarantees that individual users cannot achieve alone.

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
Bundle Merging: MEV Block Building Process | ChainScore Glossary