What is ERC-4337?

1 min read Updated

ERC-4337 is the Ethereum standard for account abstraction that enables smart contract wallets with programmable transaction validation, gas sponsorship, and batched operations — without requiring protocol-level changes to Ethereum.

WHY IT MATTERS

ERC-4337 introduces a parallel transaction pipeline for smart accounts. Instead of regular transactions, smart accounts submit UserOperations to a mempool. Bundlers pick up these UserOperations, validate them against the account's rules, and submit them to the EntryPoint contract for on-chain execution.

Key innovations include: Paymasters (third parties can pay gas on behalf of users/agents), batched operations (multiple actions in one transaction), and custom validation (any signing scheme or authorization logic). This makes wallets programmable in ways EOAs never could be.

For agent developers, ERC-4337 enables: session keys (temporary, scoped agent authority), spending limits (on-chain enforcement of budgets), sponsored gas (agents don't need ETH for gas), and modular extensions (add new capabilities to existing wallets).

HOW POLICYLAYER USES THIS

PolicyLayer works with ERC-4337 smart accounts to validate UserOperations against spending policies. Agent transactions pass through PolicyLayer's policy checks as part of the UserOperation validation flow — enforcing rules at the smart account level.

FREQUENTLY ASKED QUESTIONS

Do I need ERC-4337 for agent wallets?
Not necessarily, but it's the best option for on-chain spending controls. You can also use EOAs with off-chain policy enforcement, but ERC-4337 smart accounts make controls tamper-proof.
What are the main ERC-4337 infrastructure providers?
ZeroDev, Biconomy, Pimlico, Alchemy (Account Kit), and Stackup provide bundler and paymaster infrastructure. Safe, Kernel, and Modular Account are popular smart account implementations.
Does ERC-4337 work on all chains?
On all major EVM chains — Ethereum, Base, Arbitrum, Optimism, Polygon, Avalanche, and more. Each chain has its own EntryPoint deployment and bundler infrastructure.

FURTHER READING

Enforce policies on every tool call

Intercept is the open-source MCP proxy that enforces YAML policies on AI agent tool calls. No code changes needed.

npx -y @policylayer/intercept
github.com/policylayer/intercept →
// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.