What is a Bundler?
A bundler is a specialized node service in the ERC-4337 account abstraction ecosystem that collects UserOperations from a dedicated mempool, packages them into bundles, and submits them to the blockchain as regular transactions. Bundlers play a role similar to miners/validators but specifically for account abstraction transactions.
Bundlers are essential infrastructure that bridges the gap between user-friendly smart contract wallets and the underlying blockchain, handling the complexity of gas estimation, operation validation, and on-chain submission.
How it Works
Bundlers operate through a sophisticated processing pipeline:
UserOperation Collection:- Bundlers run nodes connected to the alt mempool
- Receive UserOps from wallets via JSON-RPC
- Validate operations locally before accepting
- Simulate the UserOp against the blockchain state
- Check that wallet's validateUserOp would succeed
- Verify gas estimates are accurate
- Confirm paymaster (if any) has sufficient deposit
- Filter out operations that would fail
- Group compatible UserOps together
- Order for optimal execution
- Calculate total gas requirements
- Consider MEV implications
- Create transaction calling EntryPoint.handleOps
- Pay gas upfront in ETH
- Submit to regular Ethereum mempool
- Get reimbursed from UserOp gas payments
- Bundlers earn the difference between charged gas and used gas
- Can extract value from operation ordering
- Compete on speed and reliability
Practical Example
When you approve a token swap through your smart wallet, a UserOperation is created and broadcast to the bundler network. Multiple bundlers see your operation. Bundler A includes it in a bundle with 50 other UserOps from different users. The bundler simulates execution, estimates it will cost 500,000 gas total, and submits the bundle to Ethereum. The EntryPoint processes all 50 operations, refunding the bundler from each operation's gas allocation. The bundler profits from efficient gas management and any premium paid for fast inclusion.
Why it Matters
Bundlers are critical infrastructure for account abstraction adoption:
User Experience:- Abstract away gas payment complexity
- Handle submission and monitoring
- Provide reliable transaction delivery
- Batch multiple operations for cost savings
- Optimize gas usage across bundles
- Reduce overall network load
- Anyone can run a bundler
- Competitive market prevents censorship
- No single point of failure
- Infrastructure-as-a-service market
- Providers: Alchemy, Pimlico, Stackup, Biconomy
- Growing demand as AA adoption increases
- DoS protection is complex
- Simulation accuracy is crucial
- MEV considerations in ordering
Bundlers represent a new category of blockchain infrastructure, essential for the account abstraction ecosystem to function reliably and efficiently.
Fensory partners with leading bundler providers to ensure reliable transaction processing for users managing yield positions through smart contract wallets.