ERC-4337 UserOp/Bundler/EntryPoint Flow Explained
Wiki route
This entry sits under systems index. Read it against ERC-4337 Overview · Application-Layer Implementation of Account Abstraction for peer / contrast context and fintech index for the broader system / regulatory boundary.
Key facts
- A UserOp is not a transaction; it is a sub-unit packaged by a Bundler •
- A Bundler is similar to a block builder, but it operates in the UserOp mempool •
- EntryPoint is a singleton contract and the entry point that every UserOp must pass through •
- Paymaster is an optional contract that either sponsors gas or accepts gas payment in ERC-20 •
- Aggregator is optional and batch-verifies multiple signatures(BLS / others) •
Mechanism / How it works
End-to-end flow(typical USDC gas-sponsorship scenario):
-
The user builds a UserOp:the user(or dApp) generates a UserOperation object:
sender(SCW address)noncecallData(specific call, e.g., USDC.transfer)callGasLimit/verificationGasLimit/preVerificationGasmaxFeePerGas/maxPriorityFeePerGaspaymasterAndData(when using a Paymaster)signature(signature of the SCW owner)
-
Send the UserOp to the alt-mempool:the user sends it through the Bundler RPC(
eth_sendUserOperation) -
Bundler simulation + packaging:the Bundler forks state locally and executes the UserOp, confirms that the gas estimate is correct, then packages N UserOps into a standard transaction 1 件 and calls EntryPoint.handleOps()
-
EntryPoint executes:
- Calls the SCW factory and deploys the SCW(if the SCW does not yet exist)
- Calls SCW.validateUserOp() to verify the signature + nonce
- Calls Paymaster.validatePaymasterUserOp() to verify the Paymaster’s sponsorship consent
- Executes callData(the main business logic)
- Settles gas:collects from the Paymaster / pays the Bundler
-
On-chain result:the user can confirm the SCW execution result and does not need to hold ETH
Core innovation point:because a UserOp is not a transaction, Bundlers can perform “batch-processing optimization” — packaging 10 件 UserOps into 1 件 transactions and spreading the on-chain base cost.
Origin & evolution
The UserOp structure went through multiple iterations during the 4337 draft period(2021-2022). Early versions had more fields(wallet, separate initCode, etc.), but were later simplified into the current form. The main simplifications from v0.6(2023-03 public version) to v0.7(2026) were:
- Integrating
initCodeinto thesendergeneration logic - Splitting Paymaster fields out of calldata and making them explicit
- Reducing gas overhead by 20-30%
The Bundler economic model introduced a priority-fee auction mechanism after v0.7 , mitigating the early problem that “Bundlers are hard to monetize.”
Related
- Wiki Index
- ERC-4337 Overview
- Embedded Wallet Adoption
- ERC-7702
Sources
- ERC-4337 EIP v0.6 / v0.7 spec
- ERC-4337 (Account Abstraction) — https://eips.ethereum.org/EIPS/eip-4337
Discovery
Keep reading
Read next
- Formal Specification ↔ Implementation Co-design This entry sits under systems index. Read it against Threshold BFT コンセンサス Rust 化トレンド(Tempo Simplex / Arc Malachite) for peer / contrast context and fintech index for the broader system / reg... systems/formal-spec-implementation-codesign
- Hook-Enforced Compliance This entry sits under systems index. Read it against Threshold BFT 共识 Rust 化潮流(Tempo Simplex / Arc Malachite) for peer / contrast context and fintech index for the broader system / regulator... systems/hook-enforced-compliance
- Hyperlane Interchain Security Modules (ISM) · Pluggable Verification Layer This entry sits under systems index. Read it against cross chain four poles overview for peer / contrast context and fintech index for the broader system / regulatory boundary. systems/hyperlane-ism-modular-security
Links here
- Crossmint agent SDK · NFT and wallet abstraction for AI agents This entry sits under AI Agent payment protocols seven-protocol overview. Read it against Privy embedded wallet and Coinbase CDP for peer wallet stacks, embedded wallet consolidation for mar... agent-economy/crossmint-agent-sdk
- ERC-4337 Account Abstraction Primer for AI Agents ERC-4337 is the application-layer account-abstraction standard that lets an Ethereum address be controlled by arbitrary code instead of a single secp256k1 key. For AI agents, that is the dif... agent-economy/erc-4337-account-abstraction-primer-for-agents
- ERC-7702 EOA Delegation Primer for AI Agents ERC-7702 (live since Pectra, 2025-05) lets an existing externally-owned account temporarily — or persistently — execute as if it were a smart contract wallet, without changing its address. F... agent-economy/erc-7702-eoa-delegation-primer-for-agents
- ERC-7715 overview · Wallet Permissions and AI Agent auto-payment This entry sits under AI Agent 決済プロトコル全体図 · 7プロトコル俯瞰. Read it against payments index for peer / contrast context and systems index for the broader system / regulatory boundary. agent-economy/erc-7715-overview
- x402 · AI agent payment protocol reviving HTTP 402 (overview) This entry sits under AI agent payment protocols overview · seven-protocol landscape. Read it against Coinbase CDP · developer platform · AI agent on-chain wallet infrastructure for peer / c... agent-economy/x402-http-payment-overview