Technical definition
ERC-4337 introduces a new way to handle accounts on Ethereum by replacing Externally Owned Accounts (EOAs) with Smart Contract Wallets. Instead of users managing private keys directly, these wallets are controlled by smart contracts that can enforce custom logic for transaction validation, fee payment, and signature schemes. The standard introduces a new entity called a 'Bundler' that collects user operations (UserOps) from multiple users and submits them as a single transaction to a dedicated 'EntryPoint' contract. The EntryPoint contract then verifies and executes these operations, abstracting the complexity of gas fee management and transaction signing from the end user. This allows for features like batch transactions, fee abstraction (paying gas in tokens other than ETH), and multi-signature requirements without requiring protocol-level changes.
An analogy
Imagine a bank account where you don’t need to carry cash to pay for transactions. Instead, the bank automatically deducts fees from your account balance in the currency you prefer (e.g., USD, EUR, or even loyalty points) and handles all the paperwork and signatures for you. You just tell the bank what you want to do, and it takes care of the rest behind the scenes.
Why it matters
ERC-4337 makes Ethereum wallets more flexible, secure, and user-friendly by removing the need for users to manage private keys directly and allowing them to pay transaction fees in any token. It also enables advanced features like social recovery, multi-factor authentication, and batch transactions without requiring changes to the Ethereum protocol itself.
Where it came from
ERC-4337 was proposed in September 2021 by a team including Ethereum co-founder Vitalik Buterin and others. It was officially published as an Ethereum Improvement Proposal (EIP) in February 2022 and gained significant attention for its potential to improve Ethereum’s usability without requiring a hard fork.
Example in practice
A user sets up a smart contract wallet that requires two-factor authentication (e.g., a password and a hardware key) to approve transactions. They then send a transaction to swap tokens on a decentralized exchange (DEX). The wallet automatically deducts the gas fee from their token balance (e.g., USDC) instead of requiring ETH, and the transaction is executed without the user needing to manually sign or manage gas fees.
Common misconceptions
- ERC-4337 eliminates the need for gas fees entirely → It does not eliminate gas fees; it abstracts how they are paid and managed, but users still pay for computation and storage on Ethereum.
- ERC-4337 is a protocol upgrade → It is a smart contract standard that works within the existing Ethereum protocol, requiring no changes to the base layer.
- ERC-4337 wallets are always more secure → While they can enhance security through features like social recovery or multi-factor authentication, they are only as secure as the smart contract implementation and the user’s chosen authentication methods.
Risks & limitations
- Smart contract risk: Bugs or vulnerabilities in the smart contract wallet implementation could lead to fund loss or exploits.
- Centralization risks: Bundlers and relayers could become single points of failure or censorship if not decentralized properly.
- Complexity overhead: The additional layers of abstraction (UserOps, Bundlers, EntryPoint) introduce more complexity, which could lead to unforeseen edge cases or inefficiencies.
- Gas inefficiency: The process of bundling and verifying UserOps may result in higher gas costs compared to traditional EOA transactions in some cases.
- Adoption challenges: Wallets and dApps need to integrate ERC-4337 support, which may slow down widespread adoption.