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

Bundler

A Bundler is a specialized network node in the ERC-4337 Account Abstraction stack that aggregates, validates, and submits UserOperations to the blockchain's Entry Point contract.
Chainscore © 2026
definition
BLOCKCHAIN INFRASTRUCTURE

What is a Bundler?

A Bundler is a critical infrastructure component in the ERC-4337 account abstraction standard, responsible for aggregating and submitting UserOperations to the blockchain.

A Bundler is a network node or service in the ERC-4337 account abstraction ecosystem that collects, validates, and submits batches of UserOperations (user-intended actions) to an Ethereum Virtual Machine (EVM) blockchain. It acts as a transaction relay, paying the network gas fees on behalf of users and is subsequently reimbursed from users' smart contract wallets. This role is analogous to that of a block builder in a traditional blockchain mempool, but it operates within the higher-level UserOperation mempool specific to account abstraction.

The Bundler's core functions include receiving UserOperations from users or Paymasters, performing simulation to ensure operations are valid and will pay fees, and competitively selecting a batch to include in a bundle transaction. It must run a full Ethereum node to access the mempool and must stake ETH if operating on a network that enforces Paymaster staking rules for anti-spam and security. By aggregating multiple UserOperations into a single on-chain transaction, Bundlers enable significant gas cost savings through shared overhead, making user interactions with dApps more efficient.

Bundlers generate revenue by collecting priority fees from the bundled UserOperations and may also earn a small profit from arbitrage opportunities in the gas market. They are a foundational part of the Account Abstraction (AA) stack, which decouples transaction execution and payment logic. Major wallet providers and infrastructure teams often operate their own Bundlers to ensure reliability, but the system is designed to be permissionless, allowing any entity to run a Bundler and compete in an open market for UserOperation inclusion.

how-it-works
MECHANISM

How a Bundler Works

A bundler is a critical infrastructure component in the ERC-4337 account abstraction standard, responsible for aggregating, validating, and submitting UserOperations to the blockchain.

A bundler is a network node that collects pending UserOperations from a mempool, packages them into a single transaction, and submits this bundle to an EntryPoint smart contract on-chain. It acts as the transaction payer, covering the gas fees for the entire bundle with its own ETH, and is later reimbursed by the EntryPoint using funds deposited by the user's smart contract wallet. This role is analogous to a block builder in a traditional blockchain, but specifically for the account abstraction ecosystem. To operate profitably, a bundler must carefully select UserOperations, often prioritizing those with higher fee premiums to offset its gas costs and earn a margin.

The bundler's workflow involves several key steps. First, it monitors a peer-to-peer mempool for new UserOperations. It then performs simulation using the eth_call RPC method to validate each operation against the rules of the EntryPoint contract, ensuring it will succeed and not revert. This prevents the bundler from losing funds on invalid transactions. After simulation, it constructs a bundle, ordering operations to optimize for gas efficiency and fee extraction. Finally, it signs and broadcasts a single transaction containing the bundle to the underlying blockchain (e.g., Ethereum, Polygon, Arbitrum).

Bundlers face unique economic and technical challenges. They must manage gas price volatility and ensure their reimbursement from the EntryPoint covers their upfront costs. They also compete with other bundlers to include the most profitable UserOperations, creating a marketplace for block space within the account abstraction layer. Technically, they must run a full Ethereum node and implement the specific validation logic mandated by ERC-4337. Services like Stackup, Pimlico, and Alchemy often provide managed bundler infrastructure, allowing developers to integrate account abstraction without operating this complex component themselves.

The security of the entire account abstraction system hinges on the correct behavior of the bundler. A malicious bundler could engage in censorship by ignoring certain UserOperations or attempt front-running. However, the permissionless nature of the mempool and the ability for anyone to run a bundler are designed to mitigate these risks through competition. The EntryPoint contract acts as the final arbiter, enforcing all validation rules and ensuring users are only charged for gas used by correctly executed operations, regardless of bundler behavior.

key-features
ARCHITECTURE

Key Features of a Bundler

A bundler is a core infrastructure component in the ERC-4337 account abstraction standard, responsible for aggregating, ordering, and submitting UserOperations to the blockchain.

01

UserOperation Aggregation

The bundler's primary function is to collect UserOperations from a public mempool or a private relay. It aggregates multiple pending operations from different users into a single batch transaction, enabling significant gas cost savings through shared overhead like the base transaction fee. This batching is fundamental to the economic viability of account abstraction.

02

Paymaster Sponsorship Handling

Bundlers are responsible for interacting with paymasters to facilitate gas sponsorship. For each UserOperation that specifies a paymaster, the bundler must:

  • Validate the paymaster's stake and reputation.
  • Call the paymaster's validatePaymasterUserOp function.
  • Ensure the paymaster has sufficient funds to cover gas.
  • Submit the transaction, with the paymaster reimbursing the bundler for gas costs post-execution.
03

Simulation & Validation

Before submitting a batch, a bundler must simulate the execution of each UserOperation to ensure it will succeed and is not malicious. This involves:

  • Running a local eth_call to the EntryPoint contract's simulateValidation function.
  • Verifying the user's signature and account nonce.
  • Checking that the operation does not violate banning rules (e.g., accessing forbidden storage slots). Failed simulations result in the operation being dropped.
04

Transaction Ordering & Nonce Management

Bundlers determine the order of UserOperations within a batch, which can impact MEV (Maximal Extractable Value) opportunities and user experience. They must correctly handle each smart account's nonce, ensuring sequential execution to prevent replay attacks. Advanced bundlers may implement ordering strategies to maximize profit through arbitrage or priority fees.

05

EntryPoint Interaction

The bundler acts as the sole external caller to the canonical EntryPoint smart contract (e.g., 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789). It calls the EntryPoint's handleOps function, passing in the batched UserOperations. The EntryPoint then orchestrates the execution flow, interacting with individual smart accounts and paymasters. The bundler pays the network gas fee for this handleOps transaction.

06

Economic Incentives & Profit

Bundlers are profit-driven actors. Their revenue comes from:

  • Priority Fees: Users can attach a maxPriorityFeePerGas to their UserOperation to incentivize inclusion.
  • MEV: Value extracted from transaction ordering (e.g., arbitrage, liquidations).
  • Paymaster Refunds: Full reimbursement for gas costs from paymasters. Their costs are the Ethereum gas fees for the handleOps transaction. Profitability depends on efficient batching and gas estimation.
core-responsibilities
BUNDLER

Core Responsibilities

A Bundler is a specialized network actor in the ERC-4337 (Account Abstraction) ecosystem responsible for aggregating, simulating, and submitting UserOperations to the blockchain.

01

Operation Aggregation

The Bundler's primary function is to collect multiple UserOperations from UserOperation mempools, bundle them into a single transaction, and submit them to the EntryPoint contract. This aggregation is critical for gas efficiency, as it amortizes the fixed overhead costs (like calldata and base fees) across many operations, significantly reducing costs for end-users.

02

Transaction Simulation & Validation

Before inclusion, a Bundler must simulate each UserOperation using eth_call to verify it will pay sufficient fees and pass the smart contract wallet's validation logic. This paymaster sponsorship check and signature validation prevent the Bundler from losing money on failed transactions, as they pay the network gas fees upfront.

03

Fee Management & Prioritization

Bundlers operate on a profit motive, competing to include UserOperations based on fee incentives. They:

  • Collect priority fees from users.
  • May receive kickbacks from Paymasters.
  • Must manage complex gas economics, ensuring the bundled transaction's total gas is covered by the aggregated fees to avoid losses.
04

Decentralization & Censorship Resistance

While often run by professional operators (e.g., Blocknative, Pimlico), the Bundler role is permissionless. Multiple Bundlers can exist, preventing a single point of failure or censorship. Users can choose Bundlers based on reliability, speed, and fee policies, promoting a competitive and resilient network layer.

05

Interaction with EntryPoint

The Bundler's final, on-chain action is to call the handleOps function on the singleton EntryPoint contract. This standardized interface:

  • Executes the batch of UserOperations.
  • Interacts with Smart Contract Wallets and Paymasters.
  • Ensures atomic execution—if one operation fails, the entire bundle can revert, protecting the Bundler.
06

MEV Considerations

As transaction builders, Bundlers have a privileged position similar to block builders in traditional MEV supply chains. They can potentially engage in Maximal Extractable Value (MEV) activities by reordering, including, or excluding UserOperations within a bundle. This creates economic incentives but also raises concerns about front-running and fair ordering.

ARCHITECTURE COMPARISON

Bundler vs. Traditional Relayer

A technical comparison of the roles and capabilities of a Bundler in an ERC-4337 account abstraction stack versus a traditional transaction relayer.

Feature / MetricERC-4337 BundlerTraditional Relayer

Primary Function

Constructs, signs, and submits UserOperation bundles to an EntryPoint contract

Signs and submits single, signed transactions to the public mempool

Transaction Model

UserOperations (abstracted user intents)

Standard EOA-signed transactions

Fee Payment

Uses Paymaster for gas abstraction; user can pay in any token

User must hold and pay network gas fees (ETH, MATIC, etc.)

Sponsorship Support

Native via Paymaster integration

Requires custom meta-transaction infrastructure

Atomic Batch Execution

Required User Signature

Typical Fee Model

Takes a cut of the gas premium from bundled UserOperations

Takes a cut of the gas premium for relayed transaction

Primary On-Chain Interaction

EntryPoint contract

Standard Ethereum (or other L1/L2) mempool

ecosystem-usage
INFRASTRUCTURE

Bundlers in the Ecosystem

Bundlers are specialized nodes in the ERC-4337 account abstraction stack responsible for collecting, constructing, and submitting UserOperations to the blockchain.

01

Core Function

A bundler's primary role is to aggregate UserOperations from the mempool, package them into a single transaction, and submit them to an EntryPoint contract on-chain. This process includes:

  • Validating UserOperation signatures and paymaster sponsorship.
  • Simulating the transaction to ensure it will succeed and the bundler will be compensated.
  • Batching multiple operations to amortize gas costs across users.
02

Economic Model & Incentives

Bundlers operate on a fee-for-service model, earning revenue from the priority fees included in UserOperations. Their key economic considerations are:

  • Gas Optimization: Maximizing profit by efficiently batching operations and winning block space auctions.
  • Stake Management: Some implementations may require bundlers to stake in the EntryPoint to be eligible, creating a security bond.
  • MEV Opportunities: Bundlers can extract value by ordering transactions within a bundle, though this is constrained by the EntryPoint's rules.
03

Key Technical Components

A compliant bundler must implement specific interfaces defined by ERC-4337:

  • Bundler JSON-RPC API: A set of endpoints (e.g., eth_sendUserOperation) that wallets and dApps use to submit operations.
  • Simulation Logic: Uses the eth_call method to simulate the full execution path, checking paymaster validity and signature verification.
  • Mempool Management: Maintains a peer-to-peer mempool of pending UserOperations, similar to Ethereum's transaction mempool but for abstracted operations.
04

Decentralization & Trust Assumptions

While a single bundler can submit transactions, the system is designed for permissionless participation. Key decentralization aspects include:

  • Open Mempool: Any bundler can read UserOperations from the public mempool.
  • Censorship Resistance: Users can resubmit operations through alternative bundlers if one is censoring.
  • Validator Role: The final arbiter is the EntryPoint contract, which enforces all rules, ensuring bundlers cannot deviate from the protocol without losing their stake.
06

Relationship to Other Actors

Bundlers are one node in the ERC-4337 actor model, interacting with:

  • Smart Contract Wallets: Submit UserOperations via the bundler's RPC.
  • Paymasters: Whose sponsorship is validated during simulation.
  • Aggregators: Optional entities that can batch signature verifications, reducing gas costs for the bundler.
  • Block Builders: The bundler's transaction competes in the gas auction to be included by a block builder/validator.
security-considerations
BUNDLER

Security & Economic Considerations

A Bundler is a network actor in account abstraction (ERC-4337) that aggregates user operations, sponsors gas, and submits them to the blockchain, creating critical security and economic dynamics.

01

Staking & Slashing Mechanisms

To ensure honest behavior, bundlers may be required to stake ETH or a protocol-specific token. Malicious actions, such as censoring transactions or front-running, can result in slashing, where a portion of this stake is burned or redistributed. This creates a strong economic disincentive against attacks on the network.

02

Paymaster Reliance & Centralization Risk

Bundlers depend on Paymasters to sponsor gas fees for users. If a few dominant Paymasters emerge, they could exert undue influence by selectively bundling transactions, potentially censoring certain users or dApps. This creates a centralization vector distinct from the underlying blockchain.

03

MEV Extraction & Transaction Ordering

As the entity that orders transactions into a bundle, a bundler has a privileged position for Maximal Extractable Value (MEV). They can engage in practices like:

  • Front-running profitable user operations.
  • Sandwiching trades within a bundle.
  • Censorship for competitive advantage. Reputation systems and commit-reveal schemes are proposed mitigations.
04

Economic Viability & Fee Markets

A bundler's business model is based on earning priority fees from users and potentially MEV revenue. They must compete in a fee auction with other bundlers and validators. If operational costs (gas, RPC calls) exceed revenue, the service becomes unsustainable, threatening network health.

05

Implementation Bugs & Smart Contract Risk

The bundler's core logic is implemented in a smart contract (the EntryPoint). Bugs in this contract could lead to catastrophic failures, such as:

  • Loss of staked funds.
  • Invalid transaction execution.
  • Funds being trapped in smart accounts. Rigorous auditing and formal verification are essential.
06

Decentralization & Permissionless Entry

A healthy network requires permissionless bundler operation to prevent censorship and monopolies. Barriers include:

  • High staking requirements.
  • Need for high-performance infrastructure.
  • Access to reliable RPC endpoints and MEV data. Solutions like bundler pools and shared infrastructure aim to lower these barriers.
BUNDLER

Frequently Asked Questions

A Bundler is a critical infrastructure component in the Ethereum ecosystem, specifically for Account Abstraction (ERC-4337) and Layer 2 rollups. These questions address its core functions, operation, and importance.

A Bundler is a network node or service that aggregates multiple user operations from UserOperations into a single transaction, submits it to the blockchain, and pays the required gas fees. In the context of ERC-4337 (Account Abstraction), a Bundler collects UserOperations from a mempool, validates them against a set of rules, bundles them together, and sends the bundle to a dedicated EntryPoint smart contract on-chain. This process enables gas sponsorship, batch transactions, and a seamless user experience by abstracting away the complexities of gas management and transaction submission from end-users. Bundlers earn fees for this service, typically taking a small portion of the gas fees paid by the users within the bundle.

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 direct pipeline