{"eip":7902,"title":"Wallet Capabilities for Account Abstraction","description":"EIP-5792 Capabilities allowing dApps and wallets to exchange all AA specific UserOp fields","authors":["Yoav Weiss (@yoavw)","Alex Forshtat (@forshtat)","Dror Tirosh (@drortirosh)","Shahaf Nacson (@shahafn)"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2025-03-01","requires":[5792,7702],"discussionsTo":"https://ethereum-magicians.org/t/erc-wallet-capabilities-for-account-abstraction/23122","repo":"ERCs","label":"ERC-7902","officialUrl":"https://eips.ethereum.org/EIPS/eip-7902","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7902.md","url":"https://eips.huatuo.xyz/eip-7902/","tldr":{"en":"A set of EIP-5792 wallet capabilities that let account-abstraction-aware dApps pass paymaster data, validity windows, nonce keys, gas overrides and even EIP-7702 delegation requests to the wallet.","ja":"アカウント抽象化に対応した dApp が、Paymaster データ、有効期間、nonce key、ガスのオーバーライド、さらには EIP-7702 のデリゲーション要求までをウォレットに渡せるようにする、EIP-5792 のウォレット capability 群。","ko":"계정 추상화를 지원하는 dApp이 paymaster 데이터, 유효 기간, nonce key, 가스 오버라이드, 심지어 EIP-7702 위임 요청까지 지갑에 전달할 수 있게 하는 EIP-5792 지갑 capability 모음.","zh":"一组 EIP-5792 钱包 capability，让支持账户抽象的 dApp 可以向钱包传递 paymaster 数据、有效时间窗口、nonce key、gas 覆盖值，甚至 EIP-7702 委托请求。"},"tags":["account-abstraction","wallet","json-rpc","paymaster","7702"],"explainers":{"en":{"lang":"en","tldr":"A set of EIP-5792 wallet capabilities that let account-abstraction-aware dApps pass paymaster data, validity windows, nonce keys, gas overrides and even EIP-7702 delegation requests to the wallet.","tags":["account-abstraction","wallet","json-rpc","paymaster","7702"],"related":[5792,4337,7702,7677,7769],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7902/","markdown":"## What problem does it solve?\n\n[ERC-4337](/eip-4337/) made smart contract accounts practical, and [ERC-7769](/eip-7769/) defines a low-level RPC for bundlers. But a dApp talking to a user's wallet had no standard way to say \"use this paymaster\", \"make this operation valid only until noon\" or \"use this nonce key\". Each AA wallet needed custom integration.\n\n[EIP-5792](/eip-5792/) already gives dApps `wallet_sendCalls` with an extensible `capabilities` object. ERC-7902 defines a handful of AA-specific capabilities on top of it, so the same request works across AA wallets that support them.\n\n## How it works\n\nAll calls in a batch run on one chain, atomically. The proposal defines five capabilities:\n\n| Identifier | What the dApp supplies |\n| --- | --- |\n| `eip7702Auth` | An EOA `account` and a `delegation` address; the wallet produces an [EIP-7702](/eip-7702/) authorization setting that account's code to the delegation |\n| `staticPaymasterConfiguration` | `paymaster`, `paymasterData`, and paymaster validation / post-op gas limits, for paymasters that need no dynamic lookup |\n| `validityTimeRange` | `validAfter` / `validUntil` timestamps (seconds); the wallet must show them to the user and the account must enforce them |\n| `multiDimensionalNonce` | `nonceKey` and `nonceSequence`, the two parts of the ERC-4337 semi-abstracted nonce |\n| `accountAbstractionGasParamsOverride` | Any of `preVerificationGas`, `verificationGasLimit`, `callGasLimit`, paymaster gas limits, `maxFeePerGas`, `maxPriorityFeePerGas` |\n\nAll numeric values are hex strings. Gas overrides are optional field by field; the wallet should warn the user when overrides are present and may reject conflicting configurations. The spec recommends that production dApps rely on wallet defaults rather than raw gas overrides.\n\nPaymasters that need a web service are covered separately by [ERC-7677](/eip-7677/).\n\n## Sample code\n\nA `wallet_sendCalls` request using two of the capabilities (addresses are placeholders):\n\n```json\n{\n  \"method\": \"wallet_sendCalls\",\n  \"params\": [{\n    \"version\": \"2.0.0\",\n    \"chainId\": \"0x1\",\n    \"from\": \"0xUserAccount...\",\n    \"atomicRequired\": true,\n    \"calls\": [{ \"to\": \"0xTarget...\", \"data\": \"0x...\" }],\n    \"capabilities\": {\n      \"validityTimeRange\": {\n        \"validAfter\": \"0x0\",\n        \"validUntil\": \"0x6a000000\"\n      },\n      \"staticPaymasterConfiguration\": {\n        \"paymaster\": \"0xPaymaster...\",\n        \"paymasterData\": \"0x\",\n        \"paymasterValidationGasLimit\": \"0x186a0\",\n        \"paymasterPostOpGasLimit\": \"0xc350\"\n      }\n    }\n  }]\n}\n```\n\nBefore sending, a dApp should call `wallet_getCapabilities` (EIP-5792) to see which of these the wallet supports.\n\n## Things to know\n\n- Status is **Draft**; the Rationale section is still empty.\n- `eip7702Auth` is the most dangerous capability: a malicious `delegation` can drain the account. Wallets must restrict it to a short list of well-known, audited account implementations.\n- A malicious `staticPaymasterConfiguration` can also be an attack vector (for example a paymaster holding token approvals), so wallets must check the values match user intent.\n- For fine-grained session permissions, see [ERC-7715](/eip-7715/).\n"},"ja":{"lang":"ja","tldr":"アカウント抽象化に対応した dApp が、Paymaster データ、有効期間、nonce key、ガスのオーバーライド、さらには EIP-7702 のデリゲーション要求までをウォレットに渡せるようにする、EIP-5792 のウォレット capability 群。","tags":["account-abstraction","wallet","json-rpc","paymaster","7702"],"related":[5792,4337,7702,7677,7769],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7902/","markdown":"## 何を解決するのか\n\n[ERC-4337](/eip-4337/) によってスマートコントラクトアカウントが実用的になり、[ERC-7769](/eip-7769/) は Bundler 向けの低レベル RPC を定義しています。しかし、ユーザーのウォレットと通信する dApp には、「この Paymaster を使って」「この operation は正午までしか有効にしないで」「この nonce key を使って」と伝える標準的な方法がありませんでした。AA ウォレットごとに個別の統合が必要でした。\n\n[EIP-5792](/eip-5792/) はすでに、拡張可能な `capabilities` オブジェクトを持つ `wallet_sendCalls` を dApp に提供しています。ERC-7902 はその上に AA 固有の capability をいくつか定義し、対応する AA ウォレットなら同じリクエストがどれでも動くようにします。\n\n## 仕組み\n\nバッチ内のすべての呼び出しは、1 つのチェーン上でアトミックに実行されます。この提案は 5 つの capability を定義します。\n\n| 識別子 | dApp が指定するもの |\n| --- | --- |\n| `eip7702Auth` | EOA の `account` と `delegation` アドレス。ウォレットは、そのアカウントのコードを delegation に設定する [EIP-7702](/eip-7702/) の authorization を生成する |\n| `staticPaymasterConfiguration` | `paymaster`、`paymasterData`、Paymaster の検証／post-op のガスリミット。動的な問い合わせが不要な Paymaster 向け |\n| `validityTimeRange` | `validAfter` / `validUntil` のタイムスタンプ（秒）。ウォレットはこれをユーザーに表示しなければならず、アカウントはこれを強制しなければならない |\n| `multiDimensionalNonce` | `nonceKey` と `nonceSequence`。ERC-4337 の半抽象化された nonce の 2 つの部分 |\n| `accountAbstractionGasParamsOverride` | `preVerificationGas`、`verificationGasLimit`、`callGasLimit`、Paymaster のガスリミット、`maxFeePerGas`、`maxPriorityFeePerGas` のいずれか |\n\n数値はすべて 16 進文字列です。ガスのオーバーライドはフィールドごとに任意で、オーバーライドがある場合はウォレットがユーザーに警告すべきであり、矛盾する設定は拒否してもかまいません。仕様は、本番の dApp は生のガスオーバーライドではなくウォレットのデフォルトに任せることを推奨しています。\n\nWeb サービスを必要とする Paymaster は、[ERC-7677](/eip-7677/) が別に扱っています。\n\n## サンプルコード\n\n2 つの capability を使った `wallet_sendCalls` リクエスト（アドレスはプレースホルダー）:\n\n```json\n{\n  \"method\": \"wallet_sendCalls\",\n  \"params\": [{\n    \"version\": \"2.0.0\",\n    \"chainId\": \"0x1\",\n    \"from\": \"0xUserAccount...\",\n    \"atomicRequired\": true,\n    \"calls\": [{ \"to\": \"0xTarget...\", \"data\": \"0x...\" }],\n    \"capabilities\": {\n      \"validityTimeRange\": {\n        \"validAfter\": \"0x0\",\n        \"validUntil\": \"0x6a000000\"\n      },\n      \"staticPaymasterConfiguration\": {\n        \"paymaster\": \"0xPaymaster...\",\n        \"paymasterData\": \"0x\",\n        \"paymasterValidationGasLimit\": \"0x186a0\",\n        \"paymasterPostOpGasLimit\": \"0xc350\"\n      }\n    }\n  }]\n}\n```\n\n送信する前に、dApp は `wallet_getCapabilities`（EIP-5792）を呼んで、ウォレットがこれらのうちどれに対応しているかを確認すべきです。\n\n## 知っておくべきこと\n\n- ステータスは **Draft** で、Rationale セクションはまだ空です。\n- `eip7702Auth` は最も危険な capability です。悪意のある `delegation` はアカウントの資産を抜き取れます。ウォレットは、よく知られた監査済みのアカウント実装の短いリストに限定しなければなりません。\n- 悪意のある `staticPaymasterConfiguration` も攻撃経路になりえます（たとえば、トークンの承認を持つ Paymaster）。そのため、ウォレットは値がユーザーの意図と一致していることを確認しなければなりません。\n- きめ細かなセッション権限については、[ERC-7715](/eip-7715/) を参照してください。\n"},"ko":{"lang":"ko","tldr":"계정 추상화를 지원하는 dApp이 paymaster 데이터, 유효 기간, nonce key, 가스 오버라이드, 심지어 EIP-7702 위임 요청까지 지갑에 전달할 수 있게 하는 EIP-5792 지갑 capability 모음.","tags":["account-abstraction","wallet","json-rpc","paymaster","7702"],"related":[5792,4337,7702,7677,7769],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7902/","markdown":"## 어떤 문제를 해결하나요?\n\n[ERC-4337](/eip-4337/)은 스마트 컨트랙트 계정을 실용적으로 만들었고, [ERC-7769](/eip-7769/)는 bundler를 위한 저수준 RPC를 정의합니다. 하지만 사용자의 지갑과 통신하는 dApp에는 \"이 paymaster를 써 달라\", \"이 operation은 정오까지만 유효하게 해 달라\", \"이 nonce key를 써 달라\"고 말할 표준 방법이 없었습니다. AA 지갑마다 맞춤 연동이 필요했습니다.\n\n[EIP-5792](/eip-5792/)는 이미 확장 가능한 `capabilities` 객체를 가진 `wallet_sendCalls`를 dApp에 제공합니다. ERC-7902는 그 위에 AA 전용 capability 몇 가지를 정의해, 이를 지원하는 AA 지갑이라면 어디서나 같은 요청이 동작하게 합니다.\n\n## 어떻게 동작하나요?\n\n배치 안의 모든 호출은 하나의 체인에서 원자적으로 실행됩니다. 이 제안은 다섯 가지 capability를 정의합니다.\n\n| 식별자 | dApp이 제공하는 것 |\n| --- | --- |\n| `eip7702Auth` | EOA `account`와 `delegation` 주소. 지갑은 해당 계정의 코드를 delegation으로 설정하는 [EIP-7702](/eip-7702/) authorization을 생성한다 |\n| `staticPaymasterConfiguration` | `paymaster`, `paymasterData`, paymaster 검증 / post-op 가스 한도. 동적 조회가 필요 없는 paymaster용 |\n| `validityTimeRange` | `validAfter` / `validUntil` 타임스탬프(초). 지갑은 이를 사용자에게 보여 줘야 하고 계정은 이를 강제해야 한다 |\n| `multiDimensionalNonce` | `nonceKey`와 `nonceSequence`, 즉 ERC-4337 반추상화 nonce의 두 부분 |\n| `accountAbstractionGasParamsOverride` | `preVerificationGas`, `verificationGasLimit`, `callGasLimit`, paymaster 가스 한도, `maxFeePerGas`, `maxPriorityFeePerGas` 중 임의의 항목 |\n\n모든 숫자 값은 16진수 문자열입니다. 가스 오버라이드는 필드별로 선택 사항이며, 오버라이드가 있으면 지갑이 사용자에게 경고해야 하고 충돌하는 구성은 거부할 수 있습니다. 스펙은 프로덕션 dApp이 원시 가스 오버라이드 대신 지갑의 기본값에 의존하기를 권장합니다.\n\n웹 서비스가 필요한 paymaster는 [ERC-7677](/eip-7677/)이 별도로 다룹니다.\n\n## 샘플 코드\n\n두 가지 capability를 사용하는 `wallet_sendCalls` 요청(주소는 자리 표시용):\n\n```json\n{\n  \"method\": \"wallet_sendCalls\",\n  \"params\": [{\n    \"version\": \"2.0.0\",\n    \"chainId\": \"0x1\",\n    \"from\": \"0xUserAccount...\",\n    \"atomicRequired\": true,\n    \"calls\": [{ \"to\": \"0xTarget...\", \"data\": \"0x...\" }],\n    \"capabilities\": {\n      \"validityTimeRange\": {\n        \"validAfter\": \"0x0\",\n        \"validUntil\": \"0x6a000000\"\n      },\n      \"staticPaymasterConfiguration\": {\n        \"paymaster\": \"0xPaymaster...\",\n        \"paymasterData\": \"0x\",\n        \"paymasterValidationGasLimit\": \"0x186a0\",\n        \"paymasterPostOpGasLimit\": \"0xc350\"\n      }\n    }\n  }]\n}\n```\n\n전송하기 전에 dApp은 `wallet_getCapabilities`(EIP-5792)를 호출해 지갑이 이 중 어떤 것을 지원하는지 확인해야 합니다.\n\n## 알아둘 점\n\n- 상태는 **Draft**이며, Rationale 절은 아직 비어 있습니다.\n- `eip7702Auth`는 가장 위험한 capability입니다. 악의적인 `delegation`은 계정을 탈탈 털 수 있습니다. 지갑은 이를 잘 알려지고 감사를 거친 계정 구현의 짧은 목록으로 제한해야 합니다.\n- 악의적인 `staticPaymasterConfiguration`도 공격 경로가 될 수 있습니다(예: 토큰 승인을 가진 paymaster). 따라서 지갑은 값이 사용자의 의도와 일치하는지 확인해야 합니다.\n- 세밀한 세션 권한은 [ERC-7715](/eip-7715/)를 참고하세요.\n"},"zh":{"lang":"zh","tldr":"一组 EIP-5792 钱包 capability，让支持账户抽象的 dApp 可以向钱包传递 paymaster 数据、有效时间窗口、nonce key、gas 覆盖值，甚至 EIP-7702 委托请求。","tags":["account-abstraction","wallet","json-rpc","paymaster","7702"],"related":[5792,4337,7702,7677,7769],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7902/","markdown":"## 它解决什么问题？\n\n[ERC-4337](/eip-4337/) 让智能合约账户变得实用，[ERC-7769](/eip-7769/) 则为 bundler 定义了底层 RPC。但与用户钱包交互的 dApp 没有标准方式来说\"请使用这个 paymaster\"、\"让这个 operation 只在中午之前有效\"或\"使用这个 nonce key\"。每个 AA 钱包都需要定制集成。\n\n[EIP-5792](/eip-5792/) 已经为 dApp 提供了带有可扩展 `capabilities` 对象的 `wallet_sendCalls`。ERC-7902 在其基础上定义了少量 AA 专用的 capability，使同一个请求可以在所有支持它们的 AA 钱包上通用。\n\n## 它如何运作\n\n一个批次中的所有调用在同一条链上原子地执行。该提案定义了五个 capability：\n\n| 标识符 | dApp 提供的内容 |\n| --- | --- |\n| `eip7702Auth` | 一个 EOA 的 `account` 和一个 `delegation` 地址；钱包生成一个 [EIP-7702](/eip-7702/) authorization，把该账户的代码设置为该 delegation |\n| `staticPaymasterConfiguration` | `paymaster`、`paymasterData`，以及 paymaster 的验证 / post-op gas 上限，适用于不需要动态查询的 paymaster |\n| `validityTimeRange` | `validAfter` / `validUntil` 时间戳（秒）；钱包必须向用户展示它们，账户必须强制执行 |\n| `multiDimensionalNonce` | `nonceKey` 和 `nonceSequence`，即 ERC-4337 半抽象 nonce 的两个部分 |\n| `accountAbstractionGasParamsOverride` | `preVerificationGas`、`verificationGasLimit`、`callGasLimit`、paymaster gas 上限、`maxFeePerGas`、`maxPriorityFeePerGas` 中的任意项 |\n\n所有数值都是十六进制字符串。gas 覆盖值可以逐字段选填；存在覆盖值时钱包应当警告用户，并可以拒绝相互冲突的配置。规范建议生产环境的 dApp 依赖钱包的默认值，而不是原始的 gas 覆盖值。\n\n需要 Web 服务的 paymaster 由 [ERC-7677](/eip-7677/) 单独涵盖。\n\n## 示例代码\n\n使用其中两个 capability 的 `wallet_sendCalls` 请求（地址为占位符）：\n\n```json\n{\n  \"method\": \"wallet_sendCalls\",\n  \"params\": [{\n    \"version\": \"2.0.0\",\n    \"chainId\": \"0x1\",\n    \"from\": \"0xUserAccount...\",\n    \"atomicRequired\": true,\n    \"calls\": [{ \"to\": \"0xTarget...\", \"data\": \"0x...\" }],\n    \"capabilities\": {\n      \"validityTimeRange\": {\n        \"validAfter\": \"0x0\",\n        \"validUntil\": \"0x6a000000\"\n      },\n      \"staticPaymasterConfiguration\": {\n        \"paymaster\": \"0xPaymaster...\",\n        \"paymasterData\": \"0x\",\n        \"paymasterValidationGasLimit\": \"0x186a0\",\n        \"paymasterPostOpGasLimit\": \"0xc350\"\n      }\n    }\n  }]\n}\n```\n\n发送之前，dApp 应调用 `wallet_getCapabilities`（EIP-5792），查看钱包支持其中的哪些。\n\n## 需要注意\n\n- 状态为 **Draft**；Rationale 部分仍然为空。\n- `eip7702Auth` 是最危险的 capability：恶意的 `delegation` 可以掏空账户。钱包必须把它限制在一份简短的、广为人知且经过审计的账户实现清单内。\n- 恶意的 `staticPaymasterConfiguration` 也可能成为攻击途径（例如持有代币授权的 paymaster），因此钱包必须检查这些值是否符合用户意图。\n- 关于细粒度的会话权限，请参见 [ERC-7715](/eip-7715/)。\n"}}}
