← agentwallet.md

What is ERC-4337 (Account Abstraction)?

The Ethereum standard that enables smart contract wallets with programmable transaction logic, widely used in agent wallet infrastructure.

Definition

ERC-4337 is the technical standard for Account Abstraction on Ethereum, finalized in March 2023. It allows smart contracts to serve as user accounts, replacing the traditional externally owned account (EOA) model where a private key directly controls funds. Under ERC-4337, transaction validation, execution, and fee payment are handled through smart contract code rather than fixed cryptographic signatures. This enables features such as gas sponsorship, batched transactions, session keys, social recovery, and custom access controls—capabilities that are essential for automated agents operating without continuous human intervention.

How it works

ERC-4337 introduces a new transaction flow built on top of existing Ethereum infrastructure, avoiding the need for protocol-level changes. Instead of sending a standard transaction, a user or agent submits a UserOperation to a dedicated mempool. Bundlers collect these operations, validate them, and package them into a single transaction that calls the EntryPoint contract—a singleton contract that orchestrates execution across all ERC-4337 accounts.

The EntryPoint contract interacts with two key components: the smart account itself (which validates the operation against its custom logic) and optional paymasters (which can sponsor gas fees or accept payment in ERC-20 tokens). This separation of validation and execution allows accounts to implement arbitrary rules—such as multi-signature thresholds, time-locked operations, or delegated permissions for specific agents—while remaining compatible with the broader Ethereum network.

For agent wallets, this architecture is particularly significant. An autonomous agent can hold a session key with limited scope, execute batched operations across multiple protocols, and have its gas costs covered by a third-party paymaster. The agent's actions are enforced by immutable smart contract code rather than reliance on a single private key, reducing certain categories of risk while enabling programmatic control.

Examples on agentwallet.md

Several entries in the agentwallet.md directory implement or build upon ERC-4337 infrastructure:

User-delegated agent actions with scoped permissions. Uses smart account architecture for delegated, permissioned operations on Ethereum, Polygon, Arbitrum, and Optimism.
Open-source toolkit for building agent wallets, supporting multiple chains including Ethereum and Base. Enables rapid prototyping of agent-driven transactions.
Headless server-side agents with no UI required. MPC-based custody supporting Ethereum, Polygon, Base, and Arbitrum for automated backend operations.
Infrastructure for stablecoin (USDC) operations across Ethereum, Polygon, Solana, and Avalanche. Enables programmable transaction flows for agent use cases.
Compliance-first agents with KYC and fiat on-ramp. MPC-based custody supporting Ethereum, Polygon, Solana, and Base for regulated environments.

Frequently asked questions

What is ERC-4337?
ERC-4337 is an Ethereum standard that enables account abstraction, allowing smart contracts to function as user accounts. It was finalized in March 2023 and operates without requiring changes to the Ethereum protocol.
How does ERC-4337 differ from traditional Ethereum accounts?
Traditional Ethereum accounts are externally owned accounts (EOAs) controlled by private keys. ERC-4337 replaces EOAs with smart contract accounts that can implement custom validation logic, session keys, and social recovery.
What is gas sponsorship in ERC-4337?
Gas sponsorship allows a third party (paymaster) to pay transaction fees on behalf of a user. This means users can transact without holding ETH for gas, enabling smoother onboarding and alternative payment models.
Which agent wallet platforms use ERC-4337?
MetaMask Smart Accounts, Safe, Biconomy Nexus, and Pimlico are among the infrastructure providers building on ERC-4337. These platforms enable automated agent transactions with scoped permissions and batched operations.
What are batched transactions in ERC-4337?
Batched transactions allow multiple operations to be executed in a single user operation. This reduces gas costs and enables atomic execution, where either all transactions succeed or all fail together.