Summary
- ERC-4337: Introduces a smart account framework that integrates with existing infrastructure like bundlers and paymasters, all without needing any changes to the Ethereum protocol.
- EIP-7702: Proposes a protocol-level enhancement that upgrades EOAs (Externally Owned Accounts) into smart accounts using a new transaction type. This requires a hard fork.
ERC-4337 at a Glance
Protocol Upgrade Needed: No Architecture: Implements a framework around the EntryPoint contract, allowing smart accounts to process and validate custom transactions through bundlers and paymasters. Core Components:- UserOperation (UserOp) structure
- Bundlers (relayers of UserOps)
- Paymasters (sponsors for gas fees)
- Fully operational without requiring protocol-level changes
- Modular design supports plug-in components (e.g., paymasters, custom validation logic)
- Adds architectural complexity (e.g., separate mempool, increased calldata)
EIP-7702 Overview
Protocol Upgrade Needed: Yes Mechanism: Introduces a new transaction type that temporarily transforms an EOA into a contract-based smart account for the duration of the transaction. Key Feature: Utilizes authorization_list to define behavior during this transition Strengths:- Simplified developer and user experience – the protocol handles the complexity internally
- Uses the traditional transaction path – no need for separate infrastructure like EntryPoint or custom mempools
- Requires client upgrades and a hard fork, meaning adoption will vary across networks
- Backward compatibility will be a concern during early rollout
- The originating EOA maintains full control over the deployed smart account, making it harder to implement robust multisig or social recovery features