{"eip":7710,"title":"Smart Contract Delegation","description":"Interfaces for consistently delegating capabilities to other contracts or EOAs.","authors":["Ryan McPeck (@McOso)","Dan Finlay (@DanFinlay)","Rob Dawson (@rojotek)","Derek Chiang (@derekchiang)"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2024-05-20","requires":[1271,7579],"discussionsTo":"https://ethereum-magicians.org/t/towards-more-conversational-wallet-connections-a-proposal-for-the-redeemdelegation-interface/16690","repo":"ERCs","label":"ERC-7710","officialUrl":"https://eips.ethereum.org/EIPS/eip-7710","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7710.md","url":"https://eips.huatuo.xyz/eip-7710/","tldr":{"en":"A minimal interface that lets a smart account delegate bounded permissions to other contracts or EOAs, which redeem them through a Delegation Manager with one call.","ja":"スマートアカウントが、範囲を限定した権限を他のコントラクトや EOA に委任し、受け手が Delegation Manager 経由で 1 回の呼び出しで行使できるようにする最小限のインターフェース。","ko":"스마트 계정이 범위가 제한된 권한을 다른 컨트랙트나 EOA에 위임하고, 수령자가 Delegation Manager를 통해 한 번의 호출로 행사할 수 있게 하는 최소한의 인터페이스.","zh":"一个最小化接口，让智能账户可以把有限的权限委托给其他合约或 EOA，由后者通过 Delegation Manager 一次调用即可兑现。"},"tags":["account-abstraction","delegation","permissions","smart-accounts"],"explainers":{"en":{"lang":"en","tldr":"A minimal interface that lets a smart account delegate bounded permissions to other contracts or EOAs, which redeem them through a Delegation Manager with one call.","tags":["account-abstraction","delegation","permissions","smart-accounts"],"related":[7579,7715,1271,4337,712],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7710/","markdown":"## What problem does it solve?\n\nSmart accounts can do a lot, but letting someone else act on their behalf is clumsy. Today you either hardcode permissions, deploy a bespoke intermediary contract, or ask the user to sign every single action. That is painful for session keys, automated agents, subscriptions or \"invite links\" that should carry a limited capability.\n\nERC-7710 standardizes how a delegated permission is *redeemed*: one signature can create a long-lived, policy-constrained delegation, and any compliant Delegation Manager can verify it and execute the action from the delegator's account.\n\n## How it works\n\nRoles:\n\n- **Delegator**: the smart account granting authority.\n- **Delegate / redeemer**: a contract or EOA allowed to use the delegation.\n- **Delegation Manager**: a contract implementing `ERC7710Manager`. It checks the delegation and then calls the delegator to execute. An account can be its own manager.\n\nThe delegate calls `redeemDelegations` with three equal-length arrays, read as tuples:\n\n| Array | Meaning |\n| --- | --- |\n| `_permissionContexts[i]` | Proof of authority; format chosen by each manager (e.g. a signed delegation chain) |\n| `_modes[i]` | [ERC-7579](/eip-7579/) execution mode (single call, batch, ...) |\n| `_executionCallDatas[i]` | ERC-7579-encoded execution (target, value, calldata) |\n\nThe function reverts on length mismatch and the whole batch is atomic. The delegator does not need any special interface; it only needs to trust the manager it issued permission contexts for, and to accept ERC-7579 style executions from it.\n\nHow delegations are requested and granted is out of scope; [ERC-7715](/eip-7715/) is one way wallets can hand them out.\n\n## Sample code\n\nThe interface and a delegate redeeming a single call:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.23;\n\ninterface ERC7710Manager {\n    function redeemDelegations(\n        bytes[] calldata _permissionContexts,\n        bytes32[] calldata _modes,\n        bytes[] calldata _executionCallDatas\n    ) external;\n}\n\ncontract Redeemer {\n    bytes32 constant SINGLE_CALL = bytes32(0); // ERC-7579 mode: callType 0x00, execType 0x00\n\n    function pull(ERC7710Manager mgr, bytes calldata ctx, address token, address to, uint256 amt) external {\n        bytes[] memory ctxs = new bytes[](1);\n        bytes32[] memory modes = new bytes32[](1);\n        bytes[] memory execs = new bytes[](1);\n        ctxs[0] = ctx;\n        modes[0] = SINGLE_CALL;\n        // ERC-7579 single execution: abi.encodePacked(target, value, callData)\n        execs[0] = abi.encodePacked(token, uint256(0),\n            abi.encodeWithSignature(\"transfer(address,uint256)\", to, amt));\n        mgr.redeemDelegations(ctxs, modes, execs);\n    }\n}\n```\n\n## Things to know\n\n- Status: **Draft**. The interface has already changed once (from a single `Action` tuple to ERC-7579 executions).\n- There is no \"check permission\" view. Apps should simulate `redeemDelegations` first and request new permissions if it fails.\n- A delegation received earlier may be revoked, expire or become invalid; never assume it still works.\n- The spec points to the MetaMask Delegation Framework as a full implementation, with [EIP-712](/eip-712/) signed delegations, [ERC-1271](/eip-1271/) signatures and caveat enforcers. Works with, but does not require, [ERC-4337](/eip-4337/).\n- Security considerations are still marked \"needs discussion\"; audit any manager carefully.\n"},"ja":{"lang":"ja","tldr":"スマートアカウントが、範囲を限定した権限を他のコントラクトや EOA に委任し、受け手が Delegation Manager 経由で 1 回の呼び出しで行使できるようにする最小限のインターフェース。","tags":["account-abstraction","delegation","permissions","smart-accounts"],"related":[7579,7715,1271,4337,712],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7710/","markdown":"## 何を解決するのか\n\nスマートアカウントにはさまざまなことができますが、他者に代理で動いてもらうのは面倒です。現状では、権限をハードコードするか、専用の仲介コントラクトをデプロイするか、ユーザーにすべての操作へ署名してもらうかのいずれかです。セッションキー、自動化されたエージェント、サブスクリプション、限定的な権限を持たせたい「招待リンク」などでは負担になります。\n\nERC-7710 は、委任された権限を*行使（redeem）*する方法を標準化します。1 回の署名で、長期間有効でポリシーに制約された委任を作成でき、準拠した Delegation Manager であればそれを検証し、委任者のアカウントから操作を実行できます。\n\n## 仕組み\n\n役割：\n\n- **Delegator（委任者）**：権限を付与するスマートアカウント。\n- **Delegate / redeemer（受任者）**：委任を使うことを許されたコントラクトまたは EOA。\n- **Delegation Manager**：`ERC7710Manager` を実装するコントラクト。委任を検証したうえで、委任者を呼び出して実行させます。アカウント自身が Manager になることもできます。\n\n受任者は、同じ長さの 3 つの配列を渡して `redeemDelegations` を呼び出します。配列はタプルとして読まれます。\n\n| 配列 | 意味 |\n| --- | --- |\n| `_permissionContexts[i]` | 権限の証明。形式は Manager ごとに決まる（例：署名済みの委任チェーン） |\n| `_modes[i]` | [ERC-7579](/eip-7579/) の実行モード（単一の call、バッチなど） |\n| `_executionCallDatas[i]` | ERC-7579 形式でエンコードされた実行内容（target、value、calldata） |\n\nこの関数は長さが一致しない場合に revert し、バッチ全体がアトミックです。委任者に特別なインターフェースは不要です。permission context を発行した相手の Manager を信頼し、その Manager からの ERC-7579 形式の実行を受け付けられればよいだけです。\n\n委任をどのように要求し、付与するかはスコープ外です。[ERC-7715](/eip-7715/) は、ウォレットが委任を渡す方法の 1 つです。\n\n## サンプルコード\n\nインターフェースと、単一の call を行使する受任者：\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.23;\n\ninterface ERC7710Manager {\n    function redeemDelegations(\n        bytes[] calldata _permissionContexts,\n        bytes32[] calldata _modes,\n        bytes[] calldata _executionCallDatas\n    ) external;\n}\n\ncontract Redeemer {\n    bytes32 constant SINGLE_CALL = bytes32(0); // ERC-7579 mode: callType 0x00, execType 0x00\n\n    function pull(ERC7710Manager mgr, bytes calldata ctx, address token, address to, uint256 amt) external {\n        bytes[] memory ctxs = new bytes[](1);\n        bytes32[] memory modes = new bytes32[](1);\n        bytes[] memory execs = new bytes[](1);\n        ctxs[0] = ctx;\n        modes[0] = SINGLE_CALL;\n        // ERC-7579 single execution: abi.encodePacked(target, value, callData)\n        execs[0] = abi.encodePacked(token, uint256(0),\n            abi.encodeWithSignature(\"transfer(address,uint256)\", to, amt));\n        mgr.redeemDelegations(ctxs, modes, execs);\n    }\n}\n```\n\n## 知っておくべきこと\n\n- ステータス：**Draft**。インターフェースはすでに一度変更されています（単一の `Action` タプルから ERC-7579 の実行形式へ）。\n- 「権限を確認する」view 関数はありません。アプリは最初に `redeemDelegations` をシミュレーションし、失敗した場合は新しい権限を要求すべきです。\n- 以前に受け取った委任は、取り消されたり、期限切れになったり、無効になったりする可能性があります。まだ機能すると決めつけないでください。\n- 仕様は完全な実装として MetaMask Delegation Framework を挙げており、[EIP-712](/eip-712/) 署名付き委任、[ERC-1271](/eip-1271/) 署名、caveat enforcer を備えています。[ERC-4337](/eip-4337/) と併用できますが、必須ではありません。\n- セキュリティに関する考慮事項はまだ「要議論」とされています。Manager は慎重に監査してください。\n"},"ko":{"lang":"ko","tldr":"스마트 계정이 범위가 제한된 권한을 다른 컨트랙트나 EOA에 위임하고, 수령자가 Delegation Manager를 통해 한 번의 호출로 행사할 수 있게 하는 최소한의 인터페이스.","tags":["account-abstraction","delegation","permissions","smart-accounts"],"related":[7579,7715,1271,4337,712],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7710/","markdown":"## 어떤 문제를 해결하나요?\n\n스마트 계정은 많은 일을 할 수 있지만, 다른 사람이 대신 행동하게 하는 일은 번거롭습니다. 지금은 권한을 하드코딩하거나, 전용 중개 컨트랙트를 배포하거나, 사용자가 모든 동작에 일일이 서명해야 합니다. 세션 키, 자동화된 에이전트, 구독, 제한된 권한을 담아야 하는 \"초대 링크\" 같은 경우에는 고통스러운 방식입니다.\n\nERC-7710은 위임된 권한을 *행사(redeem)*하는 방법을 표준화합니다. 한 번의 서명으로 오래 유지되고 정책의 제약을 받는 위임을 만들 수 있고, 규격을 따르는 Delegation Manager라면 이를 검증하고 위임자의 계정에서 동작을 실행할 수 있습니다.\n\n## 어떻게 동작하나요?\n\n역할:\n\n- **Delegator(위임자)**: 권한을 부여하는 스마트 계정.\n- **Delegate / redeemer(수임자)**: 위임을 사용할 수 있는 컨트랙트 또는 EOA.\n- **Delegation Manager**: `ERC7710Manager`를 구현한 컨트랙트. 위임을 확인한 뒤 위임자를 호출해 실행하게 합니다. 계정이 스스로 Manager가 될 수도 있습니다.\n\n수임자는 길이가 같은 세 배열을 넘겨 `redeemDelegations`를 호출하며, 배열은 튜플로 읽힙니다.\n\n| 배열 | 의미 |\n| --- | --- |\n| `_permissionContexts[i]` | 권한 증명. 형식은 Manager마다 정함(예: 서명된 위임 체인) |\n| `_modes[i]` | [ERC-7579](/eip-7579/) 실행 모드(단일 call, 배치 등) |\n| `_executionCallDatas[i]` | ERC-7579로 인코딩된 실행 내용(target, value, calldata) |\n\n길이가 맞지 않으면 이 함수는 revert하며, 배치 전체가 원자적입니다. 위임자에게 특별한 인터페이스는 필요 없습니다. permission context를 발급해 준 Manager를 신뢰하고, 그 Manager가 보내는 ERC-7579 방식의 실행을 받아들이기만 하면 됩니다.\n\n위임을 어떻게 요청하고 부여하는지는 범위 밖입니다. [ERC-7715](/eip-7715/)는 지갑이 위임을 내주는 한 가지 방법입니다.\n\n## 샘플 코드\n\n인터페이스와 단일 call을 행사하는 수임자:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.23;\n\ninterface ERC7710Manager {\n    function redeemDelegations(\n        bytes[] calldata _permissionContexts,\n        bytes32[] calldata _modes,\n        bytes[] calldata _executionCallDatas\n    ) external;\n}\n\ncontract Redeemer {\n    bytes32 constant SINGLE_CALL = bytes32(0); // ERC-7579 mode: callType 0x00, execType 0x00\n\n    function pull(ERC7710Manager mgr, bytes calldata ctx, address token, address to, uint256 amt) external {\n        bytes[] memory ctxs = new bytes[](1);\n        bytes32[] memory modes = new bytes32[](1);\n        bytes[] memory execs = new bytes[](1);\n        ctxs[0] = ctx;\n        modes[0] = SINGLE_CALL;\n        // ERC-7579 single execution: abi.encodePacked(target, value, callData)\n        execs[0] = abi.encodePacked(token, uint256(0),\n            abi.encodeWithSignature(\"transfer(address,uint256)\", to, amt));\n        mgr.redeemDelegations(ctxs, modes, execs);\n    }\n}\n```\n\n## 알아둘 점\n\n- 상태: **Draft**. 인터페이스는 이미 한 번 바뀌었습니다(단일 `Action` 튜플에서 ERC-7579 실행으로).\n- \"권한 확인\" view 함수는 없습니다. 앱은 먼저 `redeemDelegations`를 시뮬레이션하고, 실패하면 새 권한을 요청해야 합니다.\n- 앞서 받은 위임은 철회되거나, 만료되거나, 무효가 될 수 있습니다. 여전히 동작한다고 가정하지 마세요.\n- 스펙은 전체 구현으로 MetaMask Delegation Framework를 가리키며, [EIP-712](/eip-712/) 서명 위임, [ERC-1271](/eip-1271/) 서명, caveat enforcer를 갖추고 있습니다. [ERC-4337](/eip-4337/)과 함께 쓸 수 있지만 필수는 아닙니다.\n- 보안 고려사항은 아직 \"논의 필요\"로 표시되어 있습니다. 어떤 Manager든 신중하게 감사하세요.\n"},"zh":{"lang":"zh","tldr":"一个最小化接口，让智能账户可以把有限的权限委托给其他合约或 EOA，由后者通过 Delegation Manager 一次调用即可兑现。","tags":["account-abstraction","delegation","permissions","smart-accounts"],"related":[7579,7715,1271,4337,712],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7710/","markdown":"## 它解决什么问题？\n\n智能账户功能很强，但让别人代表它行事却很麻烦。目前要么把权限硬编码，要么部署专门的中介合约，要么让用户为每一个操作签名。对于会话密钥、自动化代理、订阅，或需要携带有限能力的“邀请链接”来说，这都很痛苦。\n\nERC-7710 规范了委托权限如何被*兑现（redeem）*：一次签名就能创建一份长期有效、受策略约束的委托，任何合规的 Delegation Manager 都可以验证它，并以委托人的账户执行相应操作。\n\n## 它如何运作\n\n角色：\n\n- **Delegator（委托人）**：授予权限的智能账户。\n- **Delegate / redeemer（受托人）**：被允许使用该委托的合约或 EOA。\n- **Delegation Manager**：实现 `ERC7710Manager` 的合约。它检查委托，然后调用委托人去执行。账户也可以充当自己的 Manager。\n\n受托人调用 `redeemDelegations`，传入三个等长的数组，按元组方式读取：\n\n| 数组 | 含义 |\n| --- | --- |\n| `_permissionContexts[i]` | 授权证明；格式由各个 Manager 自行选择（例如已签名的委托链） |\n| `_modes[i]` | [ERC-7579](/eip-7579/) 执行模式（单次调用、批量等） |\n| `_executionCallDatas[i]` | ERC-7579 编码的执行内容（目标、value、calldata） |\n\n长度不匹配时该函数会 revert，整个批次是原子的。委托人不需要任何特殊接口；它只需要信任自己为之签发 permission context 的 Manager，并接受来自该 Manager 的 ERC-7579 风格的执行。\n\n委托如何被请求和授予不在范围之内；[ERC-7715](/eip-7715/) 是钱包发放委托的一种方式。\n\n## 示例代码\n\n接口，以及兑现单次调用的受托人：\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.23;\n\ninterface ERC7710Manager {\n    function redeemDelegations(\n        bytes[] calldata _permissionContexts,\n        bytes32[] calldata _modes,\n        bytes[] calldata _executionCallDatas\n    ) external;\n}\n\ncontract Redeemer {\n    bytes32 constant SINGLE_CALL = bytes32(0); // ERC-7579 mode: callType 0x00, execType 0x00\n\n    function pull(ERC7710Manager mgr, bytes calldata ctx, address token, address to, uint256 amt) external {\n        bytes[] memory ctxs = new bytes[](1);\n        bytes32[] memory modes = new bytes32[](1);\n        bytes[] memory execs = new bytes[](1);\n        ctxs[0] = ctx;\n        modes[0] = SINGLE_CALL;\n        // ERC-7579 single execution: abi.encodePacked(target, value, callData)\n        execs[0] = abi.encodePacked(token, uint256(0),\n            abi.encodeWithSignature(\"transfer(address,uint256)\", to, amt));\n        mgr.redeemDelegations(ctxs, modes, execs);\n    }\n}\n```\n\n## 需要注意\n\n- 状态：**Draft**。接口已经变更过一次（从单个 `Action` 元组改为 ERC-7579 执行）。\n- 没有“检查权限”的 view 函数。应用应先模拟 `redeemDelegations`，如果失败再请求新的权限。\n- 之前收到的委托可能被撤销、过期或失效；永远不要假定它仍然有效。\n- 规范将 MetaMask Delegation Framework 作为完整实现，它包含 [EIP-712](/eip-712/) 签名的委托、[ERC-1271](/eip-1271/) 签名和 caveat enforcer。可以与 [ERC-4337](/eip-4337/) 配合使用，但并不依赖它。\n- 安全注意事项仍标注为“需要讨论”；请仔细审计任何 Manager。\n"}},"requiredBy":[7715]}
