{"eip":7715,"title":"Request Permissions from Wallets","description":"Adds JSON-RPC method for requesting permissions from a wallet","authors":["Luka Isailovic (@lukaisailovic)","Derek Rein (@arein)","Dan Finlay (@danfinlay)","Derek Chiang (@derekchiang)","Fil Makarov (@filmakarov)","Pedro Gomes (@pedrouid)","Conner Swenberg (@ilikesymmetry)","Lukas Rosario (@lukasrosario)","Idris Bowman (@V00D00-child)","Jeff Smale (@jeffsmale90)"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2024-05-24","requires":[4337,7710],"discussionsTo":"https://ethereum-magicians.org/t/erc-7715-grant-permissions-from-wallets/20100","repo":"ERCs","label":"ERC-7715","officialUrl":"https://eips.ethereum.org/EIPS/eip-7715","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7715.md","url":"https://eips.huatuo.xyz/eip-7715/","tldr":{"en":"Adds a wallet_requestExecutionPermissions JSON-RPC method so a dapp can ask a wallet for scoped, expiring permissions to act on the user's behalf without a prompt for every transaction.","ja":"wallet_requestExecutionPermissions JSON-RPC メソッドを追加し、dapp がトランザクションごとの確認なしに、ユーザーに代わって動作するためのスコープ付き・期限付きの権限をウォレットに要求できるようにする。","ko":"wallet_requestExecutionPermissions JSON-RPC 메서드를 추가해, dapp이 트랜잭션마다 확인 창을 띄우지 않고도 사용자를 대신해 동작할 수 있는 범위가 제한되고 만료되는 권한을 지갑에 요청할 수 있게 한다.","zh":"新增 wallet_requestExecutionPermissions JSON-RPC 方法，让 dapp 可以向钱包请求有范围限制、会过期的权限，以便代表用户操作，而无需每笔交易都弹窗确认。"},"tags":["wallet","permissions","json-rpc","account-abstraction","delegation"],"explainers":{"en":{"lang":"en","tldr":"Adds a wallet_requestExecutionPermissions JSON-RPC method so a dapp can ask a wallet for scoped, expiring permissions to act on the user's behalf without a prompt for every transaction.","tags":["wallet","permissions","json-rpc","account-abstraction","delegation"],"related":[7710,4337,5792,1193,2255],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7715/","markdown":"## What problem does it solve?\n\nIn the normal dapp flow every on-chain action needs the user to open their wallet and sign. That is tedious in interactive apps such as games, and it makes some products impossible: subscriptions, recurring buys or limit orders all need to act while the user is offline.\n\nSmart accounts can already enforce fine-grained delegations, but there was no standard way for a dapp to **ask** for one. ERC-7715 defines that request so any dapp can talk to any wallet that supports it.\n\n## How it works\n\nThe dapp sends `wallet_requestExecutionPermissions` with an array of requests. Each request contains:\n\n- `chainId` and optionally `from` (the user's account).\n- `to`: the dapp's **session account** that will use the permission.\n- `permission`: a typed object, e.g. `native-token-allowance` with an `allowance`, plus `isAdjustmentAllowed` to say whether the wallet may change the amount.\n- `rules`: extra constraints, such as an `expiry` timestamp.\n\nPermission and rule types are not fixed by this ERC; new types are meant to be defined in their own ERCs.\n\nThe wallet shows the request to the user and, if approved, returns the request (possibly adjusted) plus:\n\n- `context`: an opaque blob identifying the grant.\n- `delegationManager`: the contract that redeems it ([ERC-7710](/eip-7710/)).\n- `dependencies`: `factory`/`factoryData` pairs ([ERC-4337](/eip-4337/) style) for any account that must be deployed first.\n\nTo use the permission, the session account calls the delegation manager's redeem function with the `context` and the encoded call it wants the user's account to make. Helper methods let a dapp list supported types (`wallet_getSupportedExecutionPermissions`), list granted ones (`wallet_getGrantedExecutionPermissions`) and revoke one (`wallet_revokeExecutionPermission`).\n\n## Sample code\n\nRequesting a one-hour native-token allowance from an [EIP-1193](/eip-1193/) provider:\n\n```ts\nconst [grant] = await window.ethereum.request({\n  method: \"wallet_requestExecutionPermissions\",\n  params: [\n    {\n      chainId: \"0x1\",\n      to: sessionAccount.address,           // key held by the dapp\n      permission: {\n        type: \"native-token-allowance\",\n        isAdjustmentAllowed: true,\n        data: { allowance: \"0x0DE0B6B3A7640000\" }, // 1 ETH in wei\n      },\n      rules: [\n        { type: \"expiry\", data: { timestamp: Math.floor(Date.now() / 1000) + 3600 } },\n      ],\n    },\n  ],\n});\n\n// Keep these to redeem later via ERC-7710\nconst { context, delegationManager, dependencies } = grant;\n```\n\n## Things to know\n\n- **Status: Draft.** Field and method names may still change, and the spec's own examples are not fully consistent (for example `ruleTypes` vs `rulesTypes`), so check a wallet's documentation before relying on exact field names.\n- The wallet, not this ERC, enforces the permission. Users must trust the wallet's implementation; the spec requires wallets to display permissions clearly and warn about dangerous ones.\n- Dapps should request the narrowest permission with a short expiry. A leaked session key can use whatever was granted until it expires or is revoked.\n- It complements [ERC-5792](/eip-5792/) (batched calls with user approval) and is distinct from the older [EIP-2255](/eip-2255/), which covers permissions for RPC methods rather than on-chain execution.\n"},"ja":{"lang":"ja","tldr":"wallet_requestExecutionPermissions JSON-RPC メソッドを追加し、dapp がトランザクションごとの確認なしに、ユーザーに代わって動作するためのスコープ付き・期限付きの権限をウォレットに要求できるようにする。","tags":["wallet","permissions","json-rpc","account-abstraction","delegation"],"related":[7710,4337,5792,1193,2255],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7715/","markdown":"## 何を解決するのか\n\n通常の dapp のフローでは、オンチェーンの操作のたびにユーザーがウォレットを開いて署名する必要があります。ゲームのようなインタラクティブなアプリでは面倒ですし、サブスクリプション、定期購入、指値注文のように、ユーザーがオフラインの間にも動作する必要があるプロダクトは実現できません。\n\nスマートアカウントはすでにきめ細かな委任を強制できますが、dapp がそれを**要求する**ための標準的な方法はありませんでした。ERC-7715 はその要求を定義し、どの dapp でも、対応するどのウォレットとやり取りできるようにします。\n\n## 仕組み\n\ndapp は、リクエストの配列を付けて `wallet_requestExecutionPermissions` を送ります。各リクエストには次が含まれます。\n\n- `chainId` と、任意で `from`（ユーザーのアカウント）。\n- `to`: この権限を使う、dapp 側の**セッションアカウント**。\n- `permission`: 型付きのオブジェクト。たとえば `allowance` を持つ `native-token-allowance` や、ウォレットが金額を変更してよいかを示す `isAdjustmentAllowed`。\n- `rules`: `expiry` タイムスタンプなどの追加の制約。\n\n権限とルールの型はこの ERC では固定されておらず、新しい型はそれぞれの ERC で定義されることが想定されています。\n\nウォレットはリクエストをユーザーに提示し、承認されれば、リクエスト（調整されている場合があります）に加えて次を返します。\n\n- `context`: その許可を識別する不透明な blob。\n- `delegationManager`: それを実行（redeem）するコントラクト（[ERC-7710](/eip-7710/)）。\n- `dependencies`: 先にデプロイが必要なアカウントのための `factory` / `factoryData` のペア（[ERC-4337](/eip-4337/) 方式）。\n\n権限を使うには、セッションアカウントが、`context` と、ユーザーのアカウントに実行させたい呼び出しをエンコードしたものを付けて、delegation manager の redeem 関数を呼びます。補助メソッドにより、dapp は対応している型の一覧（`wallet_getSupportedExecutionPermissions`）、付与済みの権限の一覧（`wallet_getGrantedExecutionPermissions`）の取得や、権限の取り消し（`wallet_revokeExecutionPermission`）ができます。\n\n## サンプルコード\n\n[EIP-1193](/eip-1193/) プロバイダーから、1 時間有効なネイティブトークンの allowance を要求する例:\n\n```ts\nconst [grant] = await window.ethereum.request({\n  method: \"wallet_requestExecutionPermissions\",\n  params: [\n    {\n      chainId: \"0x1\",\n      to: sessionAccount.address,           // key held by the dapp\n      permission: {\n        type: \"native-token-allowance\",\n        isAdjustmentAllowed: true,\n        data: { allowance: \"0x0DE0B6B3A7640000\" }, // 1 ETH in wei\n      },\n      rules: [\n        { type: \"expiry\", data: { timestamp: Math.floor(Date.now() / 1000) + 3600 } },\n      ],\n    },\n  ],\n});\n\n// Keep these to redeem later via ERC-7710\nconst { context, delegationManager, dependencies } = grant;\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** フィールド名やメソッド名は今後変わる可能性があります。また、仕様自身の例も完全には一貫していない（たとえば `ruleTypes` と `rulesTypes`）ため、正確なフィールド名に頼る前にウォレットのドキュメントを確認してください。\n- 権限を強制するのはこの ERC ではなくウォレットです。ユーザーはウォレットの実装を信頼する必要があります。仕様は、ウォレットが権限を明確に表示し、危険なものについて警告することを求めています。\n- dapp は、期限の短い、できるだけ狭い権限を要求すべきです。セッションキーが漏えいすると、期限切れまたは取り消しまで、付与された権限をそのまま使われてしまいます。\n- [ERC-5792](/eip-5792/)（ユーザーの承認付きのバッチ呼び出し）を補完します。また、オンチェーン実行ではなく RPC メソッドの権限を扱う、より古い [EIP-2255](/eip-2255/) とは別物です。\n"},"ko":{"lang":"ko","tldr":"wallet_requestExecutionPermissions JSON-RPC 메서드를 추가해, dapp이 트랜잭션마다 확인 창을 띄우지 않고도 사용자를 대신해 동작할 수 있는 범위가 제한되고 만료되는 권한을 지갑에 요청할 수 있게 한다.","tags":["wallet","permissions","json-rpc","account-abstraction","delegation"],"related":[7710,4337,5792,1193,2255],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7715/","markdown":"## 어떤 문제를 해결하나요?\n\n일반적인 dapp 흐름에서는 온체인 작업마다 사용자가 지갑을 열어 서명해야 합니다. 게임 같은 인터랙티브 앱에서는 번거롭고, 구독, 정기 매수, 지정가 주문처럼 사용자가 오프라인인 동안에도 동작해야 하는 제품은 아예 만들 수 없습니다.\n\n스마트 계정은 이미 세밀한 위임을 강제할 수 있지만, dapp이 위임을 **요청**하는 표준 방법은 없었습니다. ERC-7715는 그 요청을 정의하여 어떤 dapp이든 이를 지원하는 모든 지갑과 대화할 수 있게 합니다.\n\n## 어떻게 동작하나요?\n\ndapp은 요청 배열과 함께 `wallet_requestExecutionPermissions`를 보냅니다. 각 요청에는 다음이 들어 있습니다.\n\n- `chainId`와 선택적으로 `from`(사용자의 계정).\n- `to`: 이 권한을 사용할 dapp의 **세션 계정**.\n- `permission`: 타입이 있는 객체. 예를 들어 `allowance`를 가진 `native-token-allowance`, 그리고 지갑이 금액을 바꿔도 되는지를 나타내는 `isAdjustmentAllowed`.\n- `rules`: `expiry` 타임스탬프 같은 추가 제약.\n\n권한과 규칙의 타입은 이 ERC에서 고정하지 않으며, 새 타입은 각자의 ERC에서 정의하도록 되어 있습니다.\n\n지갑은 요청을 사용자에게 보여 주고, 승인되면 요청(조정되었을 수 있음)과 함께 다음을 반환합니다.\n\n- `context`: 해당 승인을 식별하는 불투명한 blob.\n- `delegationManager`: 이를 실행(redeem)하는 컨트랙트([ERC-7710](/eip-7710/)).\n- `dependencies`: 먼저 배포되어야 하는 계정을 위한 `factory` / `factoryData` 쌍([ERC-4337](/eip-4337/) 방식).\n\n권한을 사용하려면 세션 계정이 `context`와, 사용자의 계정이 실행하길 원하는 호출을 인코딩한 값을 가지고 delegation manager의 redeem 함수를 호출합니다. 보조 메서드로 dapp은 지원되는 타입 목록(`wallet_getSupportedExecutionPermissions`), 부여된 권한 목록(`wallet_getGrantedExecutionPermissions`)을 조회하고 권한을 취소(`wallet_revokeExecutionPermission`)할 수 있습니다.\n\n## 샘플 코드\n\n[EIP-1193](/eip-1193/) provider에서 1시간짜리 네이티브 토큰 allowance를 요청하는 예:\n\n```ts\nconst [grant] = await window.ethereum.request({\n  method: \"wallet_requestExecutionPermissions\",\n  params: [\n    {\n      chainId: \"0x1\",\n      to: sessionAccount.address,           // key held by the dapp\n      permission: {\n        type: \"native-token-allowance\",\n        isAdjustmentAllowed: true,\n        data: { allowance: \"0x0DE0B6B3A7640000\" }, // 1 ETH in wei\n      },\n      rules: [\n        { type: \"expiry\", data: { timestamp: Math.floor(Date.now() / 1000) + 3600 } },\n      ],\n    },\n  ],\n});\n\n// Keep these to redeem later via ERC-7710\nconst { context, delegationManager, dependencies } = grant;\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 필드와 메서드 이름은 아직 바뀔 수 있고, 명세 자체의 예시도 완전히 일관되지는 않습니다(예: `ruleTypes`와 `rulesTypes`). 정확한 필드 이름에 의존하기 전에 지갑의 문서를 확인하세요.\n- 권한을 강제하는 것은 이 ERC가 아니라 지갑입니다. 사용자는 지갑의 구현을 신뢰해야 하며, 명세는 지갑이 권한을 명확히 표시하고 위험한 권한에는 경고하도록 요구합니다.\n- dapp은 만료 기간이 짧은, 가능한 한 좁은 권한을 요청해야 합니다. 세션 키가 유출되면 만료되거나 취소될 때까지 부여된 권한을 그대로 쓸 수 있습니다.\n- [ERC-5792](/eip-5792/)(사용자 승인을 받는 일괄 호출)를 보완하며, 온체인 실행이 아니라 RPC 메서드에 대한 권한을 다루는 이전의 [EIP-2255](/eip-2255/)와는 다릅니다.\n"},"zh":{"lang":"zh","tldr":"新增 wallet_requestExecutionPermissions JSON-RPC 方法，让 dapp 可以向钱包请求有范围限制、会过期的权限，以便代表用户操作，而无需每笔交易都弹窗确认。","tags":["wallet","permissions","json-rpc","account-abstraction","delegation"],"related":[7710,4337,5792,1193,2255],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7715/","markdown":"## 它解决什么问题？\n\n在常规的 dapp 流程中，每一次链上操作都需要用户打开钱包签名。这在游戏等交互式应用中很烦琐，也让一些产品无法实现：订阅、定期买入或限价单都需要在用户离线时执行。\n\n智能账户已经可以强制执行细粒度的委托，但 dapp 一直没有标准方式来**请求**委托。ERC-7715 定义了这种请求，使任何 dapp 都能与任何支持它的钱包对话。\n\n## 它如何运作\n\ndapp 发送 `wallet_requestExecutionPermissions`，附带一个请求数组。每个请求包含：\n\n- `chainId`，以及可选的 `from`（用户的账户）。\n- `to`：将使用该权限的 dapp **会话账户（session account）**。\n- `permission`：一个带类型的对象，例如带有 `allowance` 的 `native-token-allowance`，以及表示钱包是否可以调整金额的 `isAdjustmentAllowed`。\n- `rules`：额外的约束，例如 `expiry` 时间戳。\n\n权限和规则的类型并不由本 ERC 固定；新的类型预计会在各自的 ERC 中定义。\n\n钱包把请求展示给用户，如果获批，则返回该请求（可能经过调整）以及：\n\n- `context`：标识该授权的不透明数据块。\n- `delegationManager`：兑现（redeem）该授权的合约（[ERC-7710](/eip-7710/)）。\n- `dependencies`：需要先部署的账户所对应的 `factory` / `factoryData` 对（[ERC-4337](/eip-4337/) 风格）。\n\n要使用权限，会话账户需带上 `context` 和它希望用户账户发起的调用的编码，去调用 delegation manager 的 redeem 函数。辅助方法让 dapp 可以列出支持的类型（`wallet_getSupportedExecutionPermissions`）、列出已授予的权限（`wallet_getGrantedExecutionPermissions`）以及撤销某个权限（`wallet_revokeExecutionPermission`）。\n\n## 示例代码\n\n通过 [EIP-1193](/eip-1193/) provider 请求一小时有效的原生代币额度：\n\n```ts\nconst [grant] = await window.ethereum.request({\n  method: \"wallet_requestExecutionPermissions\",\n  params: [\n    {\n      chainId: \"0x1\",\n      to: sessionAccount.address,           // key held by the dapp\n      permission: {\n        type: \"native-token-allowance\",\n        isAdjustmentAllowed: true,\n        data: { allowance: \"0x0DE0B6B3A7640000\" }, // 1 ETH in wei\n      },\n      rules: [\n        { type: \"expiry\", data: { timestamp: Math.floor(Date.now() / 1000) + 3600 } },\n      ],\n    },\n  ],\n});\n\n// Keep these to redeem later via ERC-7710\nconst { context, delegationManager, dependencies } = grant;\n```\n\n## 需要注意\n\n- **状态：Draft。**字段和方法名称仍可能变化，而且规范自带的示例也不完全一致（例如 `ruleTypes` 与 `rulesTypes`），因此在依赖确切字段名之前，请查阅钱包的文档。\n- 强制执行权限的是钱包，而不是这个 ERC。用户必须信任钱包的实现；规范要求钱包清晰地展示权限，并对危险权限发出警告。\n- dapp 应请求范围最窄、有效期很短的权限。泄露的会话密钥可以在过期或被撤销之前使用已授予的一切权限。\n- 它是对 [ERC-5792](/eip-5792/)（经用户批准的批量调用）的补充，也不同于更早的 [EIP-2255](/eip-2255/)，后者涉及的是 RPC 方法的权限，而不是链上执行。\n"}}}
