Hashtag Web3 Logo

Account Abstraction (ERC-4337)

9 min
intermediate

The Problem with Traditional Wallets

Ethereum supports externally owned accounts and contract accounts. An EOA traditionally authorizes transactions with a key, while a smart account can apply programmable authorization rules. Wallet capabilities also depend on the network and the implementation.

Key-controlled accounts can present limitations such as:

  • No recovery: Lose your seed phrase, lose everything.
  • No batching: Each action (approve + swap) requires a separate transaction.
  • Manual gas: Users must hold ETH to pay gas, even when transacting with other tokens.
  • No spending limits: You cannot set daily transfer caps.
  • Single point of failure: One compromised key = total loss.

Account-abstraction designs can address some of these limitations, with different permissions and recovery assumptions.

What Is Account Abstraction?

Account abstraction allows programmable account behavior, which can include:

  • Multiple signers (2FA, multisig)
  • Social recovery (trusted friends can help you regain access)
  • Spending limits and transaction rules
  • Gas sponsorship (someone else pays gas)
  • Transaction batching (approve + swap in one click)
  • Session keys (grant temporary, limited permissions to apps)

ERC-4337: The Standard

ERC-4337 is the Ethereum standard for account abstraction, deployed on mainnet in March 2023. It works without changing Ethereum's core protocol.

Key Components

UserOperation: Instead of sending a regular transaction, users create a "UserOperation" - a data structure describing what they want to do.

Bundler: A node that collects UserOperations from multiple users and submits them as a single on-chain transaction. Bundlers earn fees for this service.

EntryPoint: A singleton smart contract (deployed once on each chain) that verifies and executes UserOperations.

Paymaster: An optional smart contract that sponsors gas fees. Apps can deploy Paymasters to pay gas for their users, enabling gasless experiences.

Account Contract: The user's smart contract wallet that defines custom verification logic (what signatures are required, what spending limits apply, etc.).

The Flow

  1. User creates a UserOperation ("swap 100 USDC for ETH on Uniswap").
  2. The UserOperation is sent to a Bundler (off-chain).
  3. The Bundler submits it to the EntryPoint contract.
  4. EntryPoint calls the user's Account Contract to verify the operation.
  5. If a Paymaster is specified, EntryPoint asks the Paymaster to cover gas.
  6. The operation executes.
User creates UserOp Bundler batches ops EntryPoint validates + runs Account Paymaster verifies signer pays gas

Real-World Implementations

Safe (formerly Gnosis Safe)

The most widely used smart contract wallet. Over $100 billion in assets secured. Supports multisig (e.g., 3/5 owners must approve), modules for automation, and now ERC-4337 support.

Coinbase Smart Wallet

Coinbase launched a smart wallet using ERC-4337 with passkey authentication. Users create wallets with biometrics (Face ID, fingerprint) instead of seed phrases.

Pimlico, Alchemy, Stackup

Infrastructure providers that run Bundler services and Paymaster contracts, making it easy for apps to integrate ERC-4337.

Temporary application permissions

Session keys allow a smart wallet to grant temporary, scoped permissions to an application. For example:

"Allow this gaming app to move my in-game NFTs for the next 2 hours, with a maximum of 10 transactions, and zero access to my ETH or USDC."

This eliminates the constant "approve transaction" popups that plague current Web3 UX while maintaining granular security.

Why This Matters

Depending on the implementation, programmable accounts can support:

  • Onboarding without seed phrases (use email, passkeys, social login).
  • Gasless transactions for new users.
  • Recovery without hardware wallets (social recovery, email recovery).
  • Institutional-grade security (multisig, spending limits, timelocks).

Check which features the wallet actually implements and who can change its modules, recovery settings, or permissions.

Key Takeaways

  • EOAs (MetaMask-style wallets) have fundamental UX limitations.
  • ERC-4337 enables smart contract wallets with custom logic.
  • Paymasters enable gasless transactions by sponsoring gas fees.
  • Session keys give apps temporary, scoped permissions.
  • Account abstraction is the path to mainstream crypto adoption.

Quiz: Account Abstraction (ERC-4337)

1 / 5

What is the main limitation of Externally Owned Accounts (EOAs)?