ERC-4337 is an Ethereum Improvement Proposal that enables account abstraction by introducing a higher-layer system of UserOperations, Bundlers, and Paymasters. It allows users to interact with the blockchain using smart contract wallets instead of traditional Externally Owned Accounts (EOAs). This standard creates a new mempool for user intents and a network of actors to execute them, fundamentally decoupling transaction validation and execution logic from the core protocol's consensus rules.
ERC-4337
What is ERC-4337?
ERC-4337 is an Ethereum standard that introduces account abstraction without requiring changes to the core Ethereum protocol, enabling smart contract wallets and a new user experience paradigm.
The architecture relies on several key components. A UserOperation is a pseudo-transaction object expressing a user's intent. Bundlers are nodes that package these operations into actual transactions and submit them to the blockchain, earning fees. Paymasters are contracts that can sponsor transaction fees on a user's behalf, enabling gasless transactions or payment in ERC-20 tokens. The EntryPoint contract is a singleton that orchestrates the validation and execution of all UserOperations, ensuring security and consistency.
This standard enables powerful wallet features previously impossible with EOAs, such as social recovery (recovering access via guardians), session keys (limited permissions for dApps), batch transactions (multiple actions in one operation), and sponsored transactions. It moves the complexity of signature schemes and fee payment logic into the smart contract wallet itself, allowing for seamless user onboarding and interaction. Wallets like Safe{Wallet} and Stackup have implemented ERC-4337, creating a new ecosystem of smart accounts.
ERC-4337's development was driven by the need to improve user experience and security without a hard fork. By operating at the application layer, it avoids the lengthy process of protocol-level changes. The standard has catalyzed the growth of the Account Abstraction ecosystem, with infrastructure providers offering bundler services and paymaster solutions. Its adoption is seen as a critical step towards mainstream blockchain usability, making crypto transactions as intuitive as web2 interactions.
How ERC-4337 Works
ERC-4337 is an Ethereum standard that enables smart contract wallets, known as **User Operations**, without requiring consensus-layer changes. This guide explains its core components and transaction flow.
ERC-4337 introduces a new transaction type called a User Operation, which represents a user's intent to execute actions from their smart contract wallet, or Account Abstraction (AA) wallet. Instead of being sent directly to the mempool, these User Operations are bundled by a network participant called a Bundler. The Bundler packages multiple User Operations into a single transaction, pays the gas fee on the user's behalf, and submits it to the Ethereum network. This decouples transaction sponsorship from the user's account, enabling gasless experiences and complex transaction logic.
The system relies on several key actors: the EntryPoint smart contract, which acts as a singleton verification and execution hub; Paymasters, which can sponsor gas fees or accept payment in ERC-20 tokens; and Aggregators, which can optimize signature verification. A User Operation specifies its target contract, calldata, and a signature, but its execution is conditional on passing validation logic defined in the user's smart account. This allows for features like social recovery, spending limits, and batch transactions that are impossible with traditional Externally Owned Accounts (EOAs).
The transaction lifecycle follows a specific flow. First, a user constructs and signs a User Operation, sending it to a dedicated alt mempool. A Bundler then selects operations from this pool, simulates their validation and execution using the eth_call RPC to ensure they will succeed and are willing to pay fees. After successful simulation, the Bundler creates a bundle transaction, calls the handleOps function on the EntryPoint, and pays the gas. The EntryPoint orchestrates the final validation and execution, ensuring atomicity and security for the entire bundled operation.
Key Components of ERC-4337
ERC-4337 introduces a new, higher-level transaction flow that operates parallel to the core Ethereum protocol. It replaces the traditional Externally Owned Account (EOA) model with a system of smart contract accounts, user operations, and specialized network actors.
Smart Contract Wallet (Account Abstraction)
The Smart Contract Wallet is the user's on-chain account, replacing the traditional Externally Owned Account (EOA). It is a smart contract that holds assets and executes logic defined by its owner. Key capabilities include:
- Social Recovery: Designate guardians to recover access.
- Transaction Batching: Execute multiple actions in one call.
- Spending Limits & Session Keys: Set rules for dApp interactions.
- Gas Sponsorship: Allow third parties to pay for transaction fees.
UserOperation
A UserOperation is a pseudo-transaction object that represents a user's intent. It is not a native Ethereum transaction but is submitted to a dedicated mempool. It contains:
- Sender: The smart contract wallet address.
- Nonce: Prevents replay attacks.
- CallData: The actions for the wallet to execute.
- Signature: Cryptographic proof of intent, which can be flexible (e.g., multisig, passkey).
- Paymaster Data: Instructions for gas payment sponsorship.
Bundler
The Bundler is a network node (often a searcher or validator) that listens for UserOperations from a peer-to-peer mempool. Its primary functions are:
- Aggregation: Collects multiple UserOperations.
- Validation: Simulates each operation to ensure it will pay fees.
- Submission: Packages valid operations into a single standard Ethereum transaction and submits it to the base layer. Bundlers earn fees for this service, similar to block builders.
Paymaster
A Paymaster is a smart contract that can sponsor gas fees for users, enabling key use cases like:
- Gasless Transactions: DApps or companies pay fees for their users.
- Pay with ERC-20 Tokens: Users pay fees in tokens like USDC instead of ETH.
- Subscription Models: Sponsored transactions for subscribed users. The Paymaster contract validates sponsorship conditions and reimburses the Bundler, abstracting gas complexity from the end-user.
EntryPoint Contract
The EntryPoint is a singleton, audited system-level smart contract that acts as the central orchestrator. All Bundlers send their bundled transactions to this single contract. It is responsible for:
- Orchestrating Flow: Calling each user's Smart Contract Wallet and Paymaster in the correct order.
- Enforcing Security: Ensuring atomic execution—if any part of the bundled operations fails, the entire bundle reverts.
- Handling Deposits: Managing staked funds from Paymasters and wallets for fee payment.
Alternative Mempool
ERC-4337 creates a separate, parallel UserOperation mempool distinct from the standard Ethereum transaction mempool. This dedicated space is for:
- Structured Data: Holding UserOperation objects, not raw transactions.
- P2P Network: Bundlers and clients gossip UserOperations among themselves.
- Different Rules: Operations are validated against higher-level rules (e.g., signature type, paymaster sponsorship) before being considered for bundling.
Key Features & Capabilities
ERC-4337 is an Ethereum standard enabling account abstraction without requiring consensus-layer changes. It introduces a new transaction type called a UserOperation and a new actor called a Bundler to facilitate smart contract wallets.
UserOperation
A UserOperation is a pseudo-transaction object that represents a user's intent. It is submitted to a specialized mempool and contains fields for the sender, nonce, calldata, and most importantly, signature and paymaster data. Unlike a standard transaction, it is executed within the context of a smart contract wallet.
Account Abstraction via Smart Contract Wallets
ERC-4337 achieves account abstraction by making smart contract wallets the primary account type. These wallets, not Externally Owned Accounts (EOAs), hold user assets and logic. Key capabilities include:
- Signature flexibility: Support for social recovery, multi-sig, or quantum-safe signatures.
- Sponsored transactions: Gas can be paid by a third-party paymaster.
- Atomic batching: Multiple actions in a single UserOperation.
Bundler
A Bundler is a network participant (often a node or a specialized service) that collects UserOperations from the mempool, validates them, bundles them into a single standard Ethereum transaction, and submits them to the EntryPoint contract. Bundlers earn fees for this service and are critical for the system's decentralization and liveness.
EntryPoint Contract
The EntryPoint is a singleton, audited smart contract that acts as the central orchestrator and security enforcer for ERC-4337. Its core functions are:
- Validation: Verifies the wallet's signature and pays the upfront gas.
- Execution: Calls the wallet's execution logic.
- Post-op: Handles refunds to the paymaster and compensation to the bundler. All UserOperations must flow through this contract.
Paymaster
A Paymaster is a smart contract that can sponsor gas fees for users, enabling gasless transactions. It can implement various business models:
- Fee abstraction: Paying fees in ERC-20 tokens instead of ETH.
- Sponsored sessions: Allowing a dapp to pay for its users' transactions.
- Subsidized onboarding: Removing the need for users to acquire ETH before their first transaction.
Aggregators & Signature Aggregation
To optimize gas costs, ERC-4337 supports signature aggregation. An Aggregator is a contract that can validate a batch of UserOperations with a single aggregated signature (e.g., BLS). This drastically reduces the on-chain footprint for multi-signature wallets or applications with many simultaneous users, making complex security models economically viable.
Examples & Use Cases
ERC-4337 enables a new paradigm of user-friendly blockchain interaction through account abstraction. These cards detail its core applications and the ecosystem it powers.
Gas Abstraction & Sponsored Transactions
Applications can pay for their users' transaction fees, creating a seamless onboarding experience. This gas sponsorship can be implemented via:
- Paymasters: Smart contracts that pay fees on a user's behalf, potentially accepting payment in any ERC-20 token.
- Example: A dApp offers free minting by covering gas costs, or a company pays for employee onboarding transactions.
Batch Transactions & Session Keys
Users can approve multiple operations in a single signature, enabling complex interactions. This is critical for:
- DeFi Swaps: Approve token spend and execute a trade in one click.
- Gaming: Perform multiple in-game actions (move, attack, loot) as a single atomic transaction.
- Session Keys: Grant a dApp temporary, limited permissions (e.g., for a gaming session) without constant wallet pop-ups.
Bundlers & the P2P Network
Bundlers are a new actor in the network, responsible for collecting UserOperations from the mempool, bundling them, and submitting them to the blockchain. They act like miners/validators for account abstraction.
- Function: They ensure UserOperations are valid and profitable to include.
- Ecosystem: Services like Stackup, Alchemy, and Pimlico operate bundler infrastructure, creating a decentralized relay network.
Real-World Adoption & Onboarding
ERC-4337 is the foundation for removing key UX barriers to mainstream adoption:
- Seedless Wallets: Create a wallet using just an email or social login (via secure MPC technology).
- Subscription Payments: Set up recurring payments for services without manual approvals.
- Enterprise Use: Companies can implement complex treasury management rules (approval workflows, daily limits) directly in their smart account logic.
ERC-4337 vs. Traditional EOAs
Key technical and user experience differences between Account Abstraction via ERC-4337 and legacy Externally Owned Accounts.
| Feature | Traditional EOA | ERC-4337 Smart Account |
|---|---|---|
Account Type | Externally Owned Account (EOA) | Smart Contract Account (SCA) |
Signing Logic | Single ECDSA private key | Programmable (multi-sig, social recovery, passkeys) |
Transaction Sponsorship | ||
Atomic Batch Transactions | ||
Gas Payment in ERC-20 Tokens | ||
Native Session Keys | ||
On-chain Social Recovery | ||
Deployment Cost | 0 ETH (pre-existing) | ~0.02-0.05 ETH (first transaction) |
Security Considerations
While ERC-4337 introduces powerful new capabilities for user experience, it also creates novel security vectors that developers, wallet providers, and users must understand. This section outlines the key security considerations for Account Abstraction.
Paymaster Centralization & Censorship
A Paymaster is an entity that can sponsor transaction gas fees. This creates a centralization and censorship risk, as a Paymaster can refuse to sponsor transactions for certain users or specific operations. Key risks include:
- Censorship: A Paymaster could block interactions with specific dApps or smart contracts.
- Rug Pulls: A malicious Paymaster could front-run and change its sponsorship policy.
- Dependency: User operations fail if the designated Paymaster is offline or insolvent.
Decentralized Paymaster networks and permissionless sponsorship models are active areas of research to mitigate these risks.
Bundler Incentives & MEV
Bundlers are the nodes that package and submit UserOperations to the blockchain. Their economic incentives introduce security considerations:
- Maximal Extractable Value (MEV): Bundlers can reorder, censor, or insert their own transactions into the bundle to extract value, similar to block builders in traditional Ethereum.
- Staked Bundlers: The protocol may evolve to require staking, creating a potential attack surface for slashing conditions.
- Resource Exhaustion: A Bundler must validate UserOperations off-chain before submitting them, making it vulnerable to DoS attacks via complex validation logic.
Smart Contract Wallet Vulnerabilities
The user's Smart Contract Account is now a programmable contract, expanding the attack surface beyond Externally Owned Accounts (EOAs). Critical risks include:
- Upgrade Logic: A malicious or buggy account upgrade could drain all funds.
- Signature Verification: Custom signature schemes (e.g., multisig, social recovery) must be implemented correctly to prevent forgery.
- EntryPoint Reentrancy: The canonical EntryPoint contract must be protected against reentrancy, as it handles funds from multiple accounts.
- Gas Limits:
validateUserOpmust have strict gas limits to prevent Bundler DoS.
Signature Abstraction & Phishing
ERC-4337 decouples transaction authorization from the ECDSA signature, enabling signature abstraction. This flexibility introduces new phishing risks:
- Malicious Sessions: A signed UserOperation could grant a dApp unlimited spending power for a session, unlike a one-time transaction approval.
- Opaque UserOperations: Users may sign complex
calldatathey don't fully understand, leading to unintended asset approvals or transfers. - UI Deception: Wallets must clearly visualize the full intent of a UserOperation, not just a hash, to prevent sophisticated phishing.
EntryPoint as a Single Point of Failure
All UserOperations flow through a single, global EntryPoint smart contract. This creates systemic risk:
- Protocol Upgrade: A critical bug in the EntryPoint could affect all ERC-4337 accounts. A secure upgrade mechanism is essential.
- Congestion: If the EntryPoint becomes a target for spam or a gas-guzzling contract, it could degrade the entire system's performance.
- Centralization: While the contract is immutable and permissionless, network effects could lead to a single dominant implementation, reducing client diversity.
Social Recovery & Guardian Risks
A primary benefit of smart accounts is programmable social recovery, but its security depends on the guardian model:
- Guardian Collusion: A majority of guardians could conspire to steal the account.
- Guardian Compromise: If guardians use insecure keys or wallets, they become attack vectors.
- Recruitment Delay: A malicious actor who gains temporary access could set a long delay for recovery, then compromise the account after the window.
Secure designs use decentralized guardians, multi-sig schemes for recovery, and carefully tuned time locks.
ERC-4337
A pivotal Ethereum standard that introduced account abstraction without requiring consensus-layer changes, fundamentally shifting how user accounts and transaction execution are managed on-chain.
ERC-4337 is an Ethereum standard that enables account abstraction by introducing a higher-layer infrastructure of UserOperations, Bundlers, and Paymasters, allowing smart contracts to function as externally owned accounts (EOAs). Proposed by Vitalik Buterin and others in September 2021, it was deployed on the Ethereum mainnet in March 2023. Its core innovation is achieving this functionality entirely through a new mempool and execution flow at the application layer, bypassing the need for a hard fork or changes to the core Ethereum protocol.
The standard's architecture revolves around a new transaction type called a UserOperation. Instead of a standard transaction from an EOA, users send these intent-like objects to a dedicated mempool. Bundlers, which are specialized nodes or validators, then package multiple UserOperations into a single on-chain transaction for execution by a global singleton contract called the EntryPoint. This decouples transaction validation and execution, enabling features like social recovery, session keys, and gas sponsorship directly within smart contract wallets.
ERC-4337's development was a response to the long-standing challenge of improving user experience and security in Ethereum. Prior proposals for account abstraction, such as EIP-2938, required complex changes to the consensus layer. By operating at the application layer, ERC-4337 allowed for rapid iteration and adoption. It established a unified framework for smart contract wallets (like Safe, Argent, and Etherspot) to offer advanced features without fragmenting the ecosystem, creating a standard interface for bundlers and paymasters to serve any compliant wallet.
The introduction of Paymasters is a key component, allowing third parties to sponsor transaction fees for users. A Paymaster is a smart contract that can pay for a user's gas fees, enabling use cases like gasless transactions or paying fees in ERC-20 tokens instead of ETH. This, combined with signature aggregation and flexible validation logic, makes applications more accessible and paves the way for transaction batching, where multiple actions are executed in a single atomic operation, saving significant gas costs.
ERC-4337's historical significance lies in its role as a foundational layer for the emerging smart account ecosystem. It has catalyzed the development of infrastructure like alternative mempools, bundler services, and account abstraction SDKs. While it operates off the core protocol, its success has informed subsequent protocol-level proposals, such as those outlined in Ethereum's Rollup-Centric Roadmap, ensuring that the principles of account abstraction will be deeply integrated into Ethereum's future evolution.
Ecosystem Adoption
ERC-4337 enables account abstraction without requiring changes to the Ethereum protocol, fostering adoption through new tools and infrastructure.
EntryPoint Contracts
The EntryPoint is a singleton, audited smart contract that acts as the system's orchestrator. It validates and executes UserOperations (user intents) in batches, ensuring atomicity and managing gas payments. This contract is the primary on-chain component that bundlers interact with, providing a standardized and secure execution layer for all ERC-4337 accounts.
Bundlers & Paymasters
New off-chain actors enable flexible transaction sponsorship and relay.
- Bundlers: Special nodes that package UserOperations from the mempool into a standard Ethereum transaction, paying gas fees and submitting them to the EntryPoint. They earn fees via priority gas auctions.
- Paymasters: Smart contracts that can sponsor transaction fees for users, enabling gasless UX or payment in ERC-20 tokens instead of ETH.
Smart Contract Wallets
ERC-4337's primary user-facing component is the smart account (or smart contract wallet). Unlike Externally Owned Accounts (EOAs), these accounts are programmable, enabling features like:
- Social recovery and multi-signature security.
- Session keys for limited permissions.
- Batch transactions executed atomically.
- Gas abstraction via paymasters. Examples include Safe{Wallet}, ZeroDev, and Biconomy Smart Accounts.
Alternative Mempool
ERC-4337 introduces a new UserOperation mempool, separate from the standard Ethereum transaction mempool. This dedicated space is for pending user intents, which are objects containing the transaction details, signature, and gas parameters for a smart account. Bundlers monitor this mempool, competing to include UserOperations in the next block based on fee incentives.
Developer SDKs & Tooling
Rapid adoption is driven by comprehensive developer tooling that abstracts the protocol's complexity.
- Account Abstraction SDKs: Libraries like ZeroDev, Biconomy, and Alchemy's Account Kit provide APIs to create, manage, and interact with smart accounts.
- Bundler & Paymaster APIs: Services like Stackup, Pimlico, and Alchemy offer hosted bundler infrastructure and paymaster services, allowing developers to integrate ERC-4337 without running their own nodes.
Cross-Chain & L2 Expansion
ERC-4337 is becoming the standard for account abstraction across the EVM ecosystem, accelerating adoption on Layer 2 networks. Its protocol-level design allows for:
- Portable user experience: A smart account's logic can be deployed and used identically on Ethereum mainnet, Arbitrum, Optimism, Polygon, and other EVM chains.
- Unified infrastructure: Bundler and paymaster services are being deployed across multiple chains, providing consistent developer and user experiences.
Frequently Asked Questions (FAQ)
Common questions about ERC-4337, the standard for account abstraction without requiring Ethereum consensus-layer changes.
ERC-4337 is an Ethereum standard that introduces account abstraction by creating a higher-layer infrastructure for smart contract wallets, bypassing the need for changes to the core Ethereum protocol. It works by introducing new actors: a UserOperation (a pseudo-transaction object), Bundlers (actors who bundle UserOperations and submit them to the blockchain), and Paymasters (contracts that can sponsor transaction fees). A user signs a UserOperation with their smart contract wallet's logic; a Bundler packages it and pays the gas fee; and the transaction is executed on-chain, enabling features like social recovery, gas sponsorship, and batch transactions.
Get In Touch
today.
Our experts will offer a free quote and a 30min call to discuss your project.