EIP-4337 proposes an innovative approach to Account Abstraction in Ethereum that doesn't require changes to the consensus layer. The architecture of EIP-4337 replicates the functionality of a transaction mempool in a high-level system, allowing for a more flexible and dynamic processing model. The main participants in this system are users and
Bundlers, who operate through a specialized peer-to-peer network of
clients with an implemented
UserOperationPool.
In this setup, users submit
UserOperation objects to the
UserOperationPool.
Bundlers, acting as transaction builders, monitor the mempool and combine
UserOperation objects into a single
bundle transaction, which is then sent to the
EntryPoint smart contract. This
EntryPoint contract acts as a central processing hub, executing the
UserOperation objects and deploying custom
Account smart contracts implementing a specified interface.
The deployed
Account smart contracts go beyond asset storage; they handle nonces and signature validation, offering opportunities for custom logic in the operations process and asset utilization. To enhance the versatility of EIP-4337 further, the protocol introduces
Paymaster actors, which handle gas payments during the execution of inner transactions. This addition allows for customizable gas payment methods based on various conditions, such as accepting ERC-20 tokens as payment to the
Paymaster.
The detailed architecture and logic of EIP-4337 can be found in the proposal authored by
Vitalik Buterin et al.