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 Fee

A bundler fee is the compensation paid to a network node for submitting and executing a bundle of user operations in an ERC-4337 account abstraction system.
Chainscore © 2026
definition
BLOCKCHAIN ECONOMICS

What is a Bundler Fee?

A bundler fee is the compensation paid to a network participant for aggregating and submitting user operations to a blockchain.

A bundler fee is the compensation paid to a bundler—a specialized network participant—for aggregating multiple user operations from a rollup or an account abstraction system like ERC-4337 and submitting them as a single transaction to the base layer blockchain (e.g., Ethereum). This fee covers the bundler's operational costs, including the gas fees required for the on-chain transaction, and provides a profit margin for their service. The fee is typically paid in the native token of the base chain (like ETH) and is deducted from the payment users send to cover their operations.

The fee structure is a critical component of the paymaster and account abstraction ecosystem, enabling a seamless user experience. Users often do not need to hold the base layer gas token; instead, they can pay fees in other tokens (like stablecoins) or have them sponsored by a dApp. The bundler is responsible for converting these payments and ensuring the bundled transaction is economically viable. The total fee is generally composed of two parts: the actual network gas cost and a priority fee or tip for the bundler, incentivizing them to include the operations promptly.

Bundlers operate in a competitive market, similar to validators or miners. They select which user operations to bundle based on the fees offered, aiming to maximize their profit while ensuring transactions are processed reliably. This system decouples the economic model from end-users, allowing for gasless transactions and more complex sponsorship logic. The efficiency of bundlers directly impacts the cost and speed of transactions in layer-2 rollups and smart contract wallets, making their fee economics a fundamental aspect of scaling blockchain usability.

how-it-works
MECHANICS

How Does a Bundler Fee Work?

A bundler fee is the compensation paid to a specialized network actor for aggregating, ordering, and submitting user operations to the blockchain within an account abstraction framework like ERC-4337.

A bundler fee is the payment made to a bundler for its service of collecting, ordering, and submitting a batch of UserOperations to the blockchain. This fee compensates the bundler for the computational work of simulating operations, covering the on-chain gas costs, and assuming the financial risk of a transaction failing after submission. The fee is typically denominated in the blockchain's native currency (e.g., ETH) and is a critical incentive mechanism for the decentralized network of bundlers that power account abstraction.

The fee structure is composed of two primary components. First, the execution gas cost covers the actual gas spent to execute the bundled transactions on-chain. Second, a priority fee (or bundler profit) is added on top to incentivize the bundler to include the operations. This priority fee can be set by users to compete for faster inclusion, similar to a max priority fee per gas in a standard Ethereum transaction. The total fee is often expressed within the UserOperation as a maxFeePerGas and maxPriorityFeePerGas.

Bundlers calculate their potential profit by simulating the UserOperation through a paymaster (if used) and the user's smart contract wallet to verify it will succeed and that the wallet can cover the fees. This simulation prevents the bundler from losing money on failed transactions. The bundler's client software then competes in a mempool for UserOperations, selecting the most profitable bundles to submit based on the offered fees, creating a competitive marketplace for transaction processing.

From a user's perspective, the bundler fee is often abstracted away. A user might only approve a transaction in their wallet interface, which uses a gas estimation API to suggest fees. The wallet or a paymaster may even sponsor these fees, allowing for gasless transactions. Ultimately, the bundler fee ensures that the essential infrastructure for account abstraction remains decentralized, secure, and economically sustainable by rewarding operators for their critical role.

key-features
MECHANISM

Key Features of Bundler Fees

A bundler fee is the compensation paid to a bundler for processing and submitting a batch of user operations to the blockchain. It covers the network gas costs and provides the bundler's profit margin.

01

Fee Composition

A bundler fee is typically composed of two primary components:

  • Gas Cost: The actual cost to execute the batch of transactions on the underlying blockchain (e.g., Ethereum).
  • Bundler Profit: A margin added on top of the gas cost, which incentivizes the bundler to include the user operations and provides revenue for their service. This structure ensures the bundler's economic viability while keeping user costs transparent.
02

Fee Market Dynamics

Bundler fees are determined by a competitive fee market, similar to Ethereum's gas auction. Key factors include:

  • Network Congestion: Higher base layer gas prices increase the bundler's costs.
  • Operation Complexity: More complex user operations (e.g., multiple contract calls) require more gas.
  • Bundler Competition: Multiple bundlers compete to include operations, which can help optimize fees for users. Users can attach a higher max priority fee to incentivize faster inclusion.
03

Payment in ERC-20 Tokens

A core innovation of account abstraction is that bundler fees can be paid in the chain's native token (e.g., ETH) or in any ERC-20 token held by the user's smart contract wallet. This is enabled by a paymaster, which can sponsor gas or accept alternative payment. It allows for:

  • Gasless transactions for users.
  • Subsidized onboarding via dApp sponsors.
  • Payment in stablecoins to avoid gas token volatility.
04

Fee Refunds & Estimation

Bundlers often implement a refund mechanism. The user specifies a max fee for their operation. The bundler charges only for the gas actually used, refunding any excess. This requires:

  • Accurate Gas Estimation: Bundlers must simulate operations to predict gas use.
  • Trustless Verification: The smart contract infrastructure must enable secure refunds to the user's account. This protects users from overpaying in volatile network conditions.
05

Economic Security & Incentives

The fee mechanism is crucial for the security of the Account Abstraction ecosystem. It must correctly align incentives:

  • Bundlers must be profitable to ensure reliable service and prevent centralization.
  • Users must pay a fair price for timely inclusion and execution.
  • The System must disincentivize malicious behavior, such as bundlers censoring transactions or extracting maximal value (MEV). Proper fee design is foundational to network health.
06

Comparison to Miner/Validator Tips

Bundler fees are analogous to priority fees (tips) in traditional blockchain transactions, but with key differences:

  • Scope: A tip incentivizes a single transaction inclusion. A bundler fee covers a batch of UserOperations.
  • Complexity: Bundler fees must account for aggregated gas and potentially multi-token payments.
  • Abstraction: The fee is often handled by a Paymaster contract, separating payment logic from the user's core transaction intent. This abstraction is a fundamental shift in transaction economics.
FEE STRUCTURE COMPARISON

Bundler Fee vs. Traditional Gas Fee

A breakdown of the key differences between the fee model for ERC-4337 User Operations and standard Ethereum transactions.

Feature / MetricBundler Fee (ERC-4337)Traditional Gas Fee (EVM)

Primary Payer

Smart Contract Wallet (via paymaster or deposited ETH)

Externally Owned Account (EOA) wallet

Fee Components

Bundler tip + actual L1 gas cost + potential paymaster markup

Base fee + priority fee (tip)

Fee Payment Asset

ERC-20 tokens or ETH (via paymaster abstraction)

Native chain token only (e.g., ETH, MATIC)

Transaction Batching

Gas Sponsorship

Fee Estimation

Calculated via eth_estimateUserOperationGas

Calculated via eth_estimateGas

Typical Cost Range

L1 cost + 0-10% bundler premium

Market-driven base fee + tip

fee-composition
ACCOUNT ABSTRACTION

Anatomy of a Bundler Fee

A breakdown of the components and economic incentives that constitute the fee paid to a bundler for processing a user operation in an ERC-4337 account abstraction system.

A bundler fee is the total compensation paid by a user to a bundler for the service of including their UserOperation in a bundle and submitting it to the underlying blockchain. This fee is not a single charge but an aggregate of several distinct on-chain cost components. The primary driver is the gas fee required to execute the bundled transactions, which is paid to the blockchain's validators. The bundler's own profit is derived from the difference between the total fee collected from users and the actual gas cost incurred, a margin often referred to as the priority fee or bundler tip.

The fee structure is explicitly defined within the ERC-4337 UserOperation object through several fields. The maxFeePerGas and maxPriorityFeePerGas set the user's maximum acceptable rates, mirroring EIP-1559 mechanics. The verificationGasLimit and callGasLimit budget the gas for the account's signature verification and main execution logic, respectively. Crucially, the prefund is the amount the user must deposit with the EntryPoint contract to cover the estimated total gas; the bundler later claims reimbursement from this deposit after execution.

Bundlers operate in a competitive mempool, incentivized to select UserOperations that maximize their profit per unit of gas. They must carefully estimate execution costs to avoid losses, as they pay the upfront gas and are only reimbursed later. Failed operations still incur verificationGas costs, which are deducted from the prefund, ensuring bundlers are compensated for their work even if a user's transaction logic reverts. This economic model ensures the network's security and reliability by properly aligning incentives between users, bundlers, and the EntryPoint contract.

ecosystem-usage
ECONOMICS

Bundler Fee in the Ecosystem

A bundler fee is the compensation paid to a bundler for processing and submitting a batch of user operations to the blockchain. This fee covers the bundler's operational costs and incentivizes network participation.

01

Core Components of the Fee

The total fee paid by a user is typically broken down into two parts:

  • Execution Gas Fee: Covers the cost of executing the user's operation(s) on-chain, paid to the network.
  • Bundler's Premium: The bundler's compensation for service, covering overhead, profit margin, and risk of transaction failure.

This structure is often abstracted from the end-user, who pays a single, simplified fee.

02

Fee Calculation & Market Dynamics

Bundler fees are not fixed and are determined by a competitive market. Key factors include:

  • Network Gas Prices: The dominant cost driver, fluctuating with base layer congestion (e.g., Ethereum L1 gas).
  • Bundler Competition: Multiple bundlers compete on fee efficiency and reliability.
  • Operation Complexity: More complex user operations (involving multiple calls or approvals) require more gas.

Bundlers use gas estimation and may employ Priority Fee mechanisms to ensure timely inclusion.

03

Who Pays the Bundler Fee?

The fee can be paid through different models, a key innovation of account abstraction:

  • Direct Payment (Default): The user's smart contract wallet pays the fee from its native token balance (e.g., ETH on Ethereum).
  • Sponsored Transactions: A paymaster contract, potentially funded by a dApp, pays the fee on the user's behalf, enabling gasless UX.
  • ERC-20 Payment: The fee is paid using an ERC-20 token via a paymaster, abstracting away the need for the native chain token.
04

Bundler vs. Validator/Sequencer Fee

It's crucial to distinguish the bundler's role and fee from other network actors:

  • Bundler: Aggregates UserOperations from the mempool and submits them to a EntryPoint contract. Earns the bundler fee.
  • Validator/Sequencer (L2): Produces blocks on the chain (e.g., Optimism, Arbitrum). Earns transaction fees and/or sequencing rewards from L1 settlement.
  • Ethereum Validator: Secures the base layer (L1) via proof-of-stake. Earns block rewards and priority fees.

The bundler fee is a service fee for aggregation, separate from the core protocol's block production fees.

05

Economic Security & Incentives

Proper fee design is critical for network security and health:

  • Incentive Alignment: Fees must be high enough to cover bundlers' gas costs plus a profit margin, ensuring a sustainable service layer.
  • Denial-of-Service (DoS) Protection: Fees prevent spam by making it costly to flood the mempool with invalid operations.
  • Trust Assumptions: Users must trust that bundlers will submit their operations honestly. Fees are bonded or at risk if a bundler acts maliciously (e.g., censoring or front-running).
06

Example: Fee Flow in ERC-4337

Consider a user sending a USDC transfer via a smart contract wallet on Ethereum:

  1. User signs a UserOperation requesting the transfer.
  2. A bundler selects this op from the mempool, estimating it will cost 100,000 gas at a gas price of 20 gwei.
  3. The bundler sets a total maxFeePerGas of 22 gwei (20 gwei for execution + 2 gwei premium).
  4. The bundler submits a batch to the EntryPoint, paying ~2,000,000 gwei (0.000002 ETH) as the L1 transaction fee.
  5. After execution, the user's wallet is debited for the gas used, and the bundler's premium is transferred to the bundler's address.
security-considerations
BUNDLER FEE

Security & Economic Considerations

A Bundler Fee is the compensation paid to a Bundler for its role in constructing and submitting a User Operation to the EntryPoint contract in an ERC-4337 account abstraction system. This fee covers gas costs and provides the Bundler's profit margin.

01

Fee Composition

The total Bundler Fee is typically composed of two primary components:

  • Execution Gas: The cost to execute the user's intended actions (e.g., token transfers, smart contract calls) on the destination chain.
  • Bundler Profit Margin: An additional premium, often calculated as a percentage of the gas cost or a flat fee, that incentivizes the Bundler to include the User Operation in its bundle. This fee is paid in the native currency of the chain (e.g., ETH, MATIC) and is deducted from the user's smart contract wallet balance.
02

Economic Security & Incentives

The fee structure is critical for the security and liveness of the ERC-4337 network. A sufficient profit margin ensures a competitive market of Bundlers, preventing centralization and censorship. If fees are too low, Bundlers have no incentive to include transactions, leading to network congestion and failed User Operations. The fee must also account for the Bundler's risk, such as the potential for transaction reversion or fluctuating gas prices between simulation and on-chain execution.

03

Fee Market Dynamics

Bundlers operate in a competitive fee market similar to block builders in Ethereum's base layer. Users can signal willingness to pay higher fees via priority fees to have their operations processed faster. Bundlers employ MEV (Maximal Extractable Value) strategies, such as ordering transactions within a bundle for optimal profit, which influences the fee economics. This creates a dynamic where fee estimation services are essential for user experience.

04

Paymaster Sponsorship & Fee Abstraction

A Paymaster is a contract that can sponsor transaction fees on behalf of users, enabling gasless transactions or payment in ERC-20 tokens. In this model, the Bundler Fee is ultimately paid by the Paymaster, which must be reimbursed. This adds a layer of economic trust, as the Bundler must verify the Paymaster's ability to pay, often through a deposit staked in the EntryPoint contract.

BUNDLER FEE

Frequently Asked Questions (FAQ)

Common questions about the fees charged by bundlers in the ERC-4337 account abstraction ecosystem.

A bundler fee is the compensation paid to a bundler for the service of aggregating, simulating, and submitting UserOperations to the blockchain. The fee is composed of two parts: the base fee for the Ethereum network's gas costs and a priority fee (or tip) to incentivize the bundler's work. The bundler calculates the total gas required for the batch of operations, adds its own profit margin, and includes this total fee in the transaction. The fee is ultimately paid from the smart contract wallet's balance or a paymaster.

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
Bundler Fee: Definition & Role in Account Abstraction | ChainScore Glossary