Key Takeaways
ERC-4337 is an Ethereum standard that enables account abstraction at the application layer without requiring changes to the Ethereum consensus protocol.
Deployed via smart contracts on the Ethereum mainnet in March 2023, ERC-4337 allows for smart contract wallets that can manage token transactions and contract interactions within a single account.
The ERC-4337 standard helped pave the way for more user-friendly crypto wallet designs that, in turn, can facilitate broader crypto adoption.
Introduction
Ethereum Improvement Proposals (EIPs) define various specifications for the Ethereum ecosystem, including core protocol upgrades and application-level standards. Ethereum Request for Comment (ERC) is a category of EIPs that sets standards for application-level components such as smart contracts and token interfaces. Unlike consensus-level upgrades, ERCs are community-driven standards agreed upon by developers and industry participants.
ERC-4337 is a recent ERC standard that implements account abstraction as a set of smart contracts and infrastructure deployed on Ethereum mainnet. First proposed as EIP-4337 in 2021, it was adopted and launched as an ERC standard in 2023. Although some references still use the original EIP number, ERC-4337 is the recognized designation.
What Is ERC-4337?
ERC-4337 was initially proposed by Vitalik Buterin and the Ethereum developer community in 2021 to implement account abstraction. Officially launched in March 2023, it introduces a new framework that enables crypto wallets to work as programmable smart contract accounts.
Ethereum currently has two primary account types: externally owned accounts (EOAs), controlled by private keys, and smart contract accounts, which hold code. ERC-4337 merges the advantages of both by allowing a single smart contract account to initiate transactions, interact with tokens, and deploy contracts. This unlocks new wallet features such as social recovery, multi-factor authentication, customizable transaction validation, and upgradeability.
In essence, ERC-4337 empowers wallets to embed programmable logic directly within a single smart contract account, simplifying user experience and security features.
Why Is ERC-4337 Needed?
Ethereum uses an account-based model, wherein EOAs and smart contract accounts maintain balances updated by transactions. EOAs, which control most existing wallets like MetaMask, rely solely on private keys and require all transactions to be signed by these keys. This model leads to complexities such as difficult wallet recovery processes and vulnerability to key loss.
Smart contract wallets offer programmable logic to address these issues but have traditionally required users to manage two separate accounts: one for holding funds and another for paying gas fees, complicating usability. In addition, existing solutions often rely on centralized relayers for transactions.
ERC-4337 removes these friction points by combining transaction authorization and gas payment logic into a unified smart contract wallet framework. This approach improves wallet security and usability through flexible transaction validation, gas abstraction, and enhanced recovery options without requiring consensus-layer changes.
How Does ERC-4337 Work?
Previous efforts like EIP-2938 proposed consensus-layer changes to achieve account abstraction. But those efforts were set aside in favor of ERC-4337’s approach, which operates entirely above the consensus layer.
ERC-4337 introduces a new transaction type called a UserOperation. These UserOperations are submitted to a separate mempool managed off-chain, where special actors called bundlers collect and aggregate them into regular Ethereum transactions.
Bundlers pay the gas fees to include these aggregated transactions on-chain and receive compensation from the fees embedded in UserOperations. Unlike consensus validators who secure the network, bundlers function as transaction facilitators, selecting which UserOperations to include based on fee priority.
A key component is the EntryPoint smart contract, which acts as a secure execution gateway for validating and processing UserOperations. Wallets implement validation functions (such as validateUserOp) to enforce custom authorization logic before execution.
This architecture allows programmable and flexible wallets without requiring changes to Ethereum's consensus protocol.
What Goals Does ERC-4337 Achieve?
The goals ERC-4337 aims to achieve include the following:
Account abstraction: Combine the features of EOAs and smart contracts to give users a single, programmable account.
Decentralization: Enable multiple bundlers to participate freely in processing UserOperations, promoting an open ecosystem.
Avoid consensus changes: Facilitate faster and easier adoption by operating without modifications to Ethereum’s consensus layer.
Enable innovative use cases: Support features like aggregated signatures, daily transaction limits, emergency account freezing, whitelisting, and privacy-preserving applications.
Save time and gas: By aggregating UserOperations into single transactions, bundlers can reduce gas costs and improve transaction throughput.
What Does ERC-4337 Mean For Users?
For everyday users, ERC-4337 offers the potential to simplify and enhance the crypto wallet experience significantly:
Simplified Wallet setup: Users may no longer need to manage seed phrases manually, allowing faster and more accessible wallet creation.
Improved account recovery: Multi-factor authentication and social recovery mechanisms can reduce the risk of losing access due to lost keys.
Customizable wallet features: Automated payments, pre-approved transactions, batched operations, and other services become easier to implement.
Enhanced security: Reduces chances of user error, such as exposure of private keys or seed phrases, improving overall wallet safety.
Gas fee flexibility: Users can pay gas fees using ERC-20 tokens or other assets through third-party paymasters, abstracting away native ETH gas payments.
Closing Thoughts
ERC-4337 offers a technical framework that allows developers to build more intuitive, secure, and feature-rich wallets by embedding smart contract logic directly into user accounts. While adoption is still growing and some technical and ecosystem challenges remain, ERC-4337 is contributing to making crypto wallets more approachable and secure for a wider audience.
Further Reading
Disclaimer: This content is presented to you on an “as is” basis for general information and educational purposes only, without representation or warranty of any kind. It should not be construed as financial, legal or other professional advice, nor is it intended to recommend the purchase of any specific product or service. You should seek your own advice from appropriate professional advisors. Products mentioned in this article may not be available in your region. Where the article is contributed by a third party contributor, please note that those views expressed belong to the third party contributor, and do not necessarily reflect those of Binance Academy. Please read our full disclaimer for further details. Digital asset prices can be volatile. The value of your investment may go down or up and you may not get back the amount invested. You are solely responsible for your investment decisions and Binance Academy is not liable for any losses you may incur. This material should not be construed as financial, legal or other professional advice. For more information, see our Terms of Use and Risk Warning.