HomeLBank AcademyWhat Is ERC-4337, or Account Abstraction for Ethereum?
What Is ERC-4337, or Account Abstraction for Ethereum?
What Is ERC-4337, or Account Abstraction for Ethereum?
2023-03-1739KAdvanced Tutorials

A New Chapter in Ethereum's Core Standards: The Birth of ERC-4337

On Ethereum, the world's largest smart contract platform, protocol specifications and application standards are key drivers of its ongoing evolution. Ethereum Improvement Proposals (EIPs) act as technical blueprints outlining innovative ideas and optimizations for the core Ethereum protocol. Embedded within these EIPs, Ethereum Request for Comments (ERCs) specifically focus on setting standards for smart contracts and tokens, which must undergo rigorous on-chain governance and authorization before becoming official guidelines for developers.


ERC-4337, the latest ERC standard to be integrated into the Ethereum mainnet, embodies the community's long-awaited vision for account abstraction. While some still refer to it by its predecessor, EIP-4337, it is important to note that this groundbreaking proposal, first introduced in 2021, has withstood two years of refinement and testing, ultimately gaining chain-wide consensus in 2023. This marks a milestone leap forward in Ethereum's account model.

ERC-4337: A Revolutionary Proposal for Ethereum Account Abstraction

ERC-4337, an innovative standard proposed in 2021 by Ethereum co-founder Vitalik Buterin alongside other developers, marks a significant milestone in blockchain technology. Its primary objective is to break the barriers of Ethereum's existing account structure by introducing account abstraction.


In the traditional Ethereum account system, there are two types of accounts: Externally Owned Accounts (EOAs) and smart contract accounts. EOAs are controlled by private keys and used for everyday transactions, while smart contracts store program code to execute predefined logic autonomously. ERC-4337 aims to merge these functionalities into a unified contract account that can not only transact tokens but also create new contracts, vastly expanding the capabilities of accounts.


Deployed in March 2023, the ERC-4337 standard has sparked a transformation in cryptocurrency wallet design. With account abstraction, future wallets will not only support conventional transfers but also integrate advanced services like social recovery, enabling users to reset or verify their identity through multiple trusted contacts; customizable features, allowing users to tailor transaction rules and permissions; and upgradability, ensuring wallets evolve alongside technological advancements.

How ERC-4337 Works and Its Implementation Path

In the journey towards Ethereum account abstraction, ERC-4337 takes an innovative approach without modifying the consensus layer. Unlike prior attempts with EIP-2938 to alter the underlying protocol structure, ERC-4337 introduces the concept of "UserOperation," a key instrument for achieving account abstraction.


Under the ERC-4337 framework, users no longer directly send transactions to the blockchain but instead encapsulate their intended actions (like transfers or interacting with smart contracts) as "UserOperations" and submit them to an independent mempool. This design mirrors the batching concept found in Layer 2 solutions, which aggregate multiple operations to reduce on-chain load.


At the heart of this system is the "Bundler," responsible for selecting and bundling UserOperation objects from the mempool into a single transaction, paying the gas fees to ensure its inclusion in a block. The Bundler earns revenue by charging a fee for each executed UserOperation, akin to validators prioritizing transactions based on fee amounts.


To facilitate account abstraction further, wallet applications upgrade their functionality in the ERC-4337 environment, adding abilities like validateUserOp to handle these new types of operations. Simultaneously, "EntryPoint" smart contracts are introduced as a security gateway, ensuring that only properly validated and authorized UserOperations are executed.

The Core Objectives and Innovative Applications of ERC-4337

ERC-4337 primarily focuses on enhancing account integration, strengthening decentralization, and fostering blockchain innovation:


1. Unified Account Abstraction: It aims to merge different account types, enabling users to manage a single account that combines smart contract and externally owned attributes. This simplifies the account structure and enhances user experience.


2. Decentralization Promotion: Any node or participant can act as a bundler in transaction processes, lowering entry barriers and further decentralizing the Ethereum network.


3. Consensus Layer Stability: Upgrades are made without altering Ethereum's core consensus layer, ensuring protocol stability and security while accelerating the adoption of new features.


4. Empowering Diverse Use Cases: Through account abstraction, it enables various innovative applications such as aggregated signatures for efficiency, daily transaction limits for fund protection, emergency freezing of accounts to prevent asset loss, and whitelist-based privacy enhancements.


5. Resource Optimization: Bundlers group multiple UserOperation objects into one transaction, saving block space, reducing on-chain congestion, and efficiently cutting down users' transaction time and gas fees. This improvement significantly boosts the overall performance of the Ethereum network.

The Impact of ERC-4337 on User Experience and Security

The implementation of ERC-4337 has brought significant improvements in convenience and security for Ethereum users, fostering wider adoption of crypto wallets and enhancing user experience. Key benefits for users include:


1. Streamlined Wallet Setup and Management: With account abstraction, ERC-4337 enables users to create and manage wallets without relying on traditional mnemonic phrases, opting instead for more accessible and secure authentication methods. This simplifies the wallet initialization process, making it easier for non-technical users to get started.


2. Enhanced Account Recovery Features: ERC-4337 supports advanced recovery options like multi-factor authentication, allowing users to regain control of their accounts even if they lose private keys or mnemonics. This significantly reduces the risk of permanent asset loss due to key mismanagement.


3. Rich and User-Friendly Wallet Functions: By leveraging account abstraction technology, wallet applications can offer tailored services such as automatic payments for scheduled transfers, pre-approval of future transactions, and bundled transactions to minimize on-chain interaction costs. These innovations boost efficiency while greatly improving user experience.


4. Increased Overall Security: As it lessens dependence on a single private key or mnemonic, ERC-4337 mitigates risks from human error, significantly boosting wallet security. Users no longer need to be overly cautious about protecting sensitive information.


5. Flexible Gas Fee Payment Options: Furthermore, ERC-4337 allows users to pay gas fees with any ERC-20 compliant token or other currency types, offering developers unprecedented flexibility. This contributes to the development of more diverse and user-friendly wallet offerings, lowering the barrier to entry into the blockchain ecosystem.

Synergy between ERC-4337 and Layer 2 Solutions in the Ethereum Ecosystem

When examining the interplay of technological approaches within the Ethereum ecosystem, the connection between ERC-4337 and Layer 2 solutions stands out. While ERC-4337, a core standard for account abstraction, primarily focuses on enhancing account functionality and user experience on Ethereum's mainnet (Layer 1), it also positively impacts Layer 2 scaling solutions.


Firstly, ERC-4337 simplifies user interaction through its account abstraction design, enabling smoother integration of Layer 2 solutions into existing wallet applications. This means wallets built on ERC-4337 can facilitate transactions not only on Layer 1 but also more seamlessly connect with Layer 2 networks like Optimism, Arbitrum, or zkSync, offering users lower fees and higher throughput.


Secondly, the enhanced flexibility and security features of accounts enabled by ERC-4337, such as support for multi-factor authentication and customizable transaction logic, foster innovation in Layer 2 projects. These could include improved cross-chain bridges, efficient fund management strategies, and streamlined payment processes.


Lastly, although ERC-4337 doesn't directly address Ethereum's scalability issues, it improves the programmability and generality of the account model, indirectly boosting the user-friendliness and functionality of Layer 2 solutions. This complementary relationship positions ERC-4337 and Layer 2 solutions as cornerstones for the future development of the Ethereum ecosystem, propelling the blockchain industry towards a more accessible, secure, and efficient decentralized finance landscape.

Conclusion

ERC-4337 marks a pivotal milestone in Ethereum's journey towards account abstraction, revolutionizing the conventional account model by seamlessly blending External Owned Accounts (EOAs) with smart contract functionality. Without compromising on consensus layer integrity, it enhances the network's flexibility and scalability.


With its successful deployment in 2023, we anticipate the dawn of a new era in wallet applications, offering improved user experience and enhanced security. Services built upon ERC-4337 are poised to disrupt the current cryptocurrency wallet landscape and fuel innovation and optimization within the decentralized finance (DeFi) ecosystem. This, in turn, will lay a solid foundation for a more inclusive, efficient, and secure global digital economy.

Live Chat
Customer Support Team

Just Now

Dear LBank User

Our online customer service system is currently experiencing connection issues. We are working actively to resolve the problem, but at this time we cannot provide an exact recovery timeline. We sincerely apologize for any inconvenience this may cause.

If you need assistance, please contact us via email and we will reply as soon as possible.

Thank you for your understanding and patience.

LBank Customer Support Team