{"eip":8001,"title":"Agent Coordination Framework","description":"Minimal, single-chain, multi-party agent coordination using EIP-712 attestations","authors":["Kwame Bryan (@KBryan)"],"status":"Final","type":"Standards Track","category":"ERC","created":"2025-08-02","requires":[712,1271,2098,5267],"discussionsTo":"https://ethereum-magicians.org/t/erc-8001-secure-intents-a-cryptographic-framework-for-autonomous-agent-coordination-draft-erc-8001/24989","repo":"ERCs","label":"ERC-8001","officialUrl":"https://eips.ethereum.org/EIPS/eip-8001","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-8001.md","url":"https://eips.huatuo.xyz/eip-8001/","tldr":{"en":"A minimal on-chain primitive for multi-party coordination: one agent proposes a signed EIP-712 intent, every listed participant signs an acceptance, and only then can the intent be executed.","ja":"複数当事者の調整のための最小限のオンチェーンプリミティブ。1 つのエージェントが署名付き EIP-712 インテントを提案し、列挙されたすべての参加者が承諾に署名して初めて、そのインテントを実行できる。","ko":"다자간 조율을 위한 최소한의 온체인 프리미티브. 한 에이전트가 서명된 EIP-712 인텐트를 제안하고, 명시된 모든 참가자가 수락에 서명한 뒤에야 인텐트를 실행할 수 있다.","zh":"面向多方协调的最小链上原语：一个 agent 提出已签名的 EIP-712 意图，所有列出的参与者各自签署接受，之后才能执行该意图。"},"tags":["agents","intents","eip-712","coordination","signatures"],"explainers":{"en":{"lang":"en","tldr":"A minimal on-chain primitive for multi-party coordination: one agent proposes a signed EIP-712 intent, every listed participant signs an acceptance, and only then can the intent be executed.","tags":["agents","intents","eip-712","coordination","signatures"],"related":[712,1271,2098,5267,7683],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8001/","markdown":"## What problem does it solve?\n\nAutonomous agents (bots, AI agents, contract wallets) increasingly need to act **together**: a group trade, a coordinated MEV strategy, a multi-party game move or a purchase that several parties must sign off on. Existing intent standards such as [ERC-7683](/eip-7683/) describe a single initiator expressing what they want; they do not define how several parties agree on the same action without a trusted coordinator.\n\nERC-8001 defines the smallest building block for that: a proposal plus a set of signed acceptances, with clear rules for when the action becomes executable. Privacy, reputation, thresholds, bonding and cross-chain behaviour are deliberately left to optional modules.\n\n## How it works\n\n**Lifecycle**: `propose → accept (by everyone) → execute`, or `cancel`. Status values are `None, Proposed, Ready, Executed, Cancelled, Expired`.\n\n1. **Propose.** The initiator (`agentId`) signs an `AgentIntent` under the EIP-712 domain `{name: \"ERC-8001\", version: \"1\", chainId, verifyingContract}`. The intent holds a hash of the off-chain `CoordinationPayload`, an expiry, a per-agent nonce that must strictly increase, a `coordinationType` id, and the `participants` list, which must be unique, sorted ascending and include the initiator.\n2. **Accept.** Each participant submits an `AcceptanceAttestation` referencing the intent's struct hash, with its own expiry and a `conditionsHash` for its constraints. Signatures may be ECDSA (65-byte or compact 64-byte [EIP-2098](/eip-2098/)) or [ERC-1271](/eip-1271/) for contract wallets.\n3. **Ready.** Once *all* participants have accepted, status becomes `Ready`. Core requires unanimity; threshold policies belong in modules.\n4. **Execute.** Anyone calls `executeCoordination` with the full payload. It reverts if the intent or any acceptance has expired, or if the payload does not match `payloadHash`.\n5. **Cancel.** Only the proposer may cancel before expiry; after expiry anyone can.\n\nFour mandatory events (`CoordinationProposed`, `Accepted`, `Executed`, `Cancelled`) let off-chain agents track progress. The domain should be discoverable via [ERC-5267](/eip-5267/).\n\n## Sample code\n\nThe intent type and interface essentials:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nstruct AgentIntent {\n    bytes32 payloadHash;\n    uint64  expiry;\n    uint64  nonce;\n    address agentId;\n    bytes32 coordinationType;\n    uint256 coordinationValue;\n    address[] participants;   // unique, ascending, includes agentId\n}\n\nbytes32 constant AGENT_INTENT_TYPEHASH = keccak256(\n    \"AgentIntent(bytes32 payloadHash,uint64 expiry,uint64 nonce,address agentId,\"\n    \"bytes32 coordinationType,uint256 coordinationValue,address[] participants)\"\n);\n\nfunction intentStructHash(AgentIntent calldata i) pure returns (bytes32) {\n    return keccak256(abi.encode(\n        AGENT_INTENT_TYPEHASH, i.payloadHash, i.expiry, i.nonce, i.agentId,\n        i.coordinationType, i.coordinationValue,\n        keccak256(abi.encodePacked(i.participants))\n    ));\n}\n```\n\n`getIntentHash` returns this **struct hash**, not the full EIP-712 digest, and each acceptance's `intentHash` field must use the same value.\n\n## Things to know\n\n- Status is **Final**.\n- It is single-chain only; cross-chain coordination is out of scope.\n- A participant can sign conflicting intents (equivocation). The core standard does not punish this; slashing or reputation modules are expected to.\n- If `coordinationData` reveals a strategy, it can be front-run. The spec suggests a privacy module with commit-reveal or encryption.\n- Give both the intent and acceptances realistic expiries so executors have time to act.\n"},"ja":{"lang":"ja","tldr":"複数当事者の調整のための最小限のオンチェーンプリミティブ。1 つのエージェントが署名付き EIP-712 インテントを提案し、列挙されたすべての参加者が承諾に署名して初めて、そのインテントを実行できる。","tags":["agents","intents","eip-712","coordination","signatures"],"related":[712,1271,2098,5267,7683],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8001/","markdown":"## 何を解決するのか\n\n自律エージェント（ボット、AI エージェント、コントラクトウォレット）が**協調して**動く必要は増えています。グループでの取引、協調的な MEV 戦略、複数人参加ゲームの手、複数の当事者の承認が必要な購入などです。[ERC-7683](/eip-7683/) のような既存のインテント標準は、単一の起案者が望むことを表現する方法を記述しますが、信頼できるコーディネーターなしに複数の当事者が同じアクションに合意する方法は定義していません。\n\nERC-8001 は、そのための最小の構成要素を定義します。提案と署名付き承諾の集合、そしてアクションが実行可能になる条件の明確なルールです。プライバシー、レピュテーション、しきい値、ボンディング、クロスチェーンの挙動は、意図的にオプションのモジュールに任されています。\n\n## 仕組み\n\n**ライフサイクル**: `propose → accept（全員）→ execute`、または `cancel`。ステータス値は `None, Proposed, Ready, Executed, Cancelled, Expired` です。\n\n1. **Propose。** 起案者（`agentId`）が、EIP-712 ドメイン `{name: \"ERC-8001\", version: \"1\", chainId, verifyingContract}` の下で `AgentIntent` に署名します。インテントには、オフチェーンの `CoordinationPayload` のハッシュ、有効期限、厳密に増加しなければならないエージェントごとの nonce、`coordinationType` の ID、そして `participants` リストが含まれます。`participants` は重複がなく、昇順にソートされ、起案者を含んでいなければなりません。\n2. **Accept。** 各参加者は、インテントの struct hash を参照する `AcceptanceAttestation` を、自身の有効期限と、自身の制約を表す `conditionsHash` とともに提出します。署名は ECDSA（65 バイト、またはコンパクトな 64 バイトの [EIP-2098](/eip-2098/)）か、コントラクトウォレット向けの [ERC-1271](/eip-1271/) を使えます。\n3. **Ready。** *すべての*参加者が承諾すると、ステータスは `Ready` になります。コアは全会一致を要求し、しきい値ポリシーはモジュールに属します。\n4. **Execute。** 誰でも完全なペイロードを付けて `executeCoordination` を呼べます。インテントまたはいずれかの承諾が期限切れの場合、またはペイロードが `payloadHash` と一致しない場合は revert します。\n5. **Cancel。** 期限前にキャンセルできるのは提案者のみで、期限後は誰でもキャンセルできます。\n\n4 つの必須イベント（`CoordinationProposed`、`Accepted`、`Executed`、`Cancelled`）により、オフチェーンのエージェントが進捗を追跡できます。ドメインは [ERC-5267](/eip-5267/) で発見可能であるべきです。\n\n## サンプルコード\n\nインテントの型とインターフェースの要点:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nstruct AgentIntent {\n    bytes32 payloadHash;\n    uint64  expiry;\n    uint64  nonce;\n    address agentId;\n    bytes32 coordinationType;\n    uint256 coordinationValue;\n    address[] participants;   // unique, ascending, includes agentId\n}\n\nbytes32 constant AGENT_INTENT_TYPEHASH = keccak256(\n    \"AgentIntent(bytes32 payloadHash,uint64 expiry,uint64 nonce,address agentId,\"\n    \"bytes32 coordinationType,uint256 coordinationValue,address[] participants)\"\n);\n\nfunction intentStructHash(AgentIntent calldata i) pure returns (bytes32) {\n    return keccak256(abi.encode(\n        AGENT_INTENT_TYPEHASH, i.payloadHash, i.expiry, i.nonce, i.agentId,\n        i.coordinationType, i.coordinationValue,\n        keccak256(abi.encodePacked(i.participants))\n    ));\n}\n```\n\n`getIntentHash` が返すのは完全な EIP-712 ダイジェストではなくこの **struct hash** であり、各承諾の `intentHash` フィールドにも同じ値を使わなければなりません。\n\n## 知っておくべきこと\n\n- ステータスは **Final** です。\n- シングルチェーン専用です。クロスチェーンの調整は対象外です。\n- 参加者が矛盾するインテントに署名すること（二重署名）は可能です。コア標準はこれを罰しません。スラッシングやレピュテーションのモジュールがその役割を担うことが期待されています。\n- `coordinationData` が戦略を明らかにする場合、フロントランされる可能性があります。仕様は、コミットリビールや暗号化を用いたプライバシーモジュールを提案しています。\n- インテントと承諾の両方に現実的な有効期限を設定し、実行者に行動する時間を与えてください。\n"},"ko":{"lang":"ko","tldr":"다자간 조율을 위한 최소한의 온체인 프리미티브. 한 에이전트가 서명된 EIP-712 인텐트를 제안하고, 명시된 모든 참가자가 수락에 서명한 뒤에야 인텐트를 실행할 수 있다.","tags":["agents","intents","eip-712","coordination","signatures"],"related":[712,1271,2098,5267,7683],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8001/","markdown":"## 어떤 문제를 해결하나요?\n\n자율 에이전트(봇, AI 에이전트, 컨트랙트 지갑)는 점점 더 **함께** 행동해야 합니다. 그룹 거래, 협조적 MEV 전략, 다자 게임의 수, 여러 당사자의 승인이 필요한 구매 등이 그 예입니다. [ERC-7683](/eip-7683/) 같은 기존 인텐트 표준은 단일 개시자가 원하는 바를 표현하는 방법을 설명할 뿐, 신뢰할 수 있는 조정자 없이 여러 당사자가 같은 행동에 합의하는 방법은 정의하지 않습니다.\n\nERC-8001은 이를 위한 가장 작은 구성 요소를 정의합니다. 제안과 서명된 수락의 집합, 그리고 행동이 언제 실행 가능해지는지에 대한 명확한 규칙입니다. 프라이버시, 평판, 임계값, 본딩, 크로스체인 동작은 의도적으로 선택적 모듈에 맡겨 두었습니다.\n\n## 어떻게 동작하나요?\n\n**수명 주기**: `propose → accept (모두) → execute`, 또는 `cancel`. 상태 값은 `None, Proposed, Ready, Executed, Cancelled, Expired`입니다.\n\n1. **Propose.** 개시자(`agentId`)가 EIP-712 도메인 `{name: \"ERC-8001\", version: \"1\", chainId, verifyingContract}` 아래에서 `AgentIntent`에 서명합니다. 인텐트에는 오프체인 `CoordinationPayload`의 해시, 만료 시각, 엄격하게 증가해야 하는 에이전트별 nonce, `coordinationType` ID, 그리고 `participants` 목록이 담깁니다. `participants`는 중복이 없고, 오름차순으로 정렬되어 있으며, 개시자를 포함해야 합니다.\n2. **Accept.** 각 참가자는 인텐트의 struct hash를 참조하는 `AcceptanceAttestation`을 자신의 만료 시각과, 자신의 제약 조건을 나타내는 `conditionsHash`와 함께 제출합니다. 서명은 ECDSA(65바이트, 또는 압축된 64바이트 [EIP-2098](/eip-2098/))이거나, 컨트랙트 지갑의 경우 [ERC-1271](/eip-1271/)일 수 있습니다.\n3. **Ready.** *모든* 참가자가 수락하면 상태가 `Ready`가 됩니다. 코어는 만장일치를 요구하며, 임계값 정책은 모듈의 몫입니다.\n4. **Execute.** 누구나 전체 페이로드와 함께 `executeCoordination`을 호출할 수 있습니다. 인텐트나 수락 중 하나라도 만료되었거나 페이로드가 `payloadHash`와 맞지 않으면 revert됩니다.\n5. **Cancel.** 만료 전에는 제안자만 취소할 수 있고, 만료 후에는 누구나 취소할 수 있습니다.\n\n네 가지 필수 이벤트(`CoordinationProposed`, `Accepted`, `Executed`, `Cancelled`)로 오프체인 에이전트가 진행 상황을 추적할 수 있습니다. 도메인은 [ERC-5267](/eip-5267/)로 확인할 수 있어야 합니다.\n\n## 샘플 코드\n\n인텐트 타입과 인터페이스의 핵심:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nstruct AgentIntent {\n    bytes32 payloadHash;\n    uint64  expiry;\n    uint64  nonce;\n    address agentId;\n    bytes32 coordinationType;\n    uint256 coordinationValue;\n    address[] participants;   // unique, ascending, includes agentId\n}\n\nbytes32 constant AGENT_INTENT_TYPEHASH = keccak256(\n    \"AgentIntent(bytes32 payloadHash,uint64 expiry,uint64 nonce,address agentId,\"\n    \"bytes32 coordinationType,uint256 coordinationValue,address[] participants)\"\n);\n\nfunction intentStructHash(AgentIntent calldata i) pure returns (bytes32) {\n    return keccak256(abi.encode(\n        AGENT_INTENT_TYPEHASH, i.payloadHash, i.expiry, i.nonce, i.agentId,\n        i.coordinationType, i.coordinationValue,\n        keccak256(abi.encodePacked(i.participants))\n    ));\n}\n```\n\n`getIntentHash`는 전체 EIP-712 다이제스트가 아니라 이 **struct hash**를 반환하며, 각 수락의 `intentHash` 필드도 같은 값을 사용해야 합니다.\n\n## 알아둘 점\n\n- 상태는 **Final**입니다.\n- 단일 체인 전용입니다. 크로스체인 조율은 범위 밖입니다.\n- 참가자가 서로 충돌하는 인텐트에 서명할 수 있습니다(이중 서명). 코어 표준은 이를 처벌하지 않으며, 슬래싱이나 평판 모듈이 그 역할을 하리라 기대합니다.\n- `coordinationData`가 전략을 드러내면 프런트러닝당할 수 있습니다. 명세는 commit-reveal이나 암호화를 사용하는 프라이버시 모듈을 제안합니다.\n- 실행자가 행동할 시간이 있도록 인텐트와 수락 모두에 현실적인 만료 시각을 설정하세요.\n"},"zh":{"lang":"zh","tldr":"面向多方协调的最小链上原语：一个 agent 提出已签名的 EIP-712 意图，所有列出的参与者各自签署接受，之后才能执行该意图。","tags":["agents","intents","eip-712","coordination","signatures"],"related":[712,1271,2098,5267,7683],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8001/","markdown":"## 它解决什么问题？\n\n自主 agent（机器人、AI agent、合约钱包）越来越需要**协同**行动：团体交易、协同的 MEV 策略、多方博弈中的一步棋，或者需要多方签字同意的采购。[ERC-7683](/eip-7683/) 等现有意图标准描述的是单个发起者表达自己想要什么；它们没有定义多个参与方如何在没有可信协调者的情况下就同一个动作达成一致。\n\nERC-8001 为此定义了最小的构建块：一个提案加上一组已签名的接受，并明确规定动作何时变为可执行。隐私、声誉、阈值、保证金和跨链行为被有意留给可选模块。\n\n## 它如何运作\n\n**生命周期**：`propose → accept（所有人）→ execute`，或 `cancel`。状态值为 `None, Proposed, Ready, Executed, Cancelled, Expired`。\n\n1. **Propose。** 发起者（`agentId`）在 EIP-712 域 `{name: \"ERC-8001\", version: \"1\", chainId, verifyingContract}` 下签署一个 `AgentIntent`。意图包含链下 `CoordinationPayload` 的哈希、过期时间、必须严格递增的每个 agent 的 nonce、`coordinationType` 标识，以及 `participants` 列表；该列表必须无重复、按升序排列，并包含发起者。\n2. **Accept。** 每个参与者提交一个引用该意图 struct hash 的 `AcceptanceAttestation`，附带自己的过期时间和表示其约束条件的 `conditionsHash`。签名可以是 ECDSA（65 字节，或紧凑的 64 字节 [EIP-2098](/eip-2098/)），合约钱包则使用 [ERC-1271](/eip-1271/)。\n3. **Ready。** 一旦*所有*参与者都接受，状态变为 `Ready`。核心要求全体一致；阈值策略属于模块。\n4. **Execute。** 任何人都可以带着完整 payload 调用 `executeCoordination`。如果意图或任何一个接受已过期，或 payload 与 `payloadHash` 不匹配，则 revert。\n5. **Cancel。** 过期前只有提案者可以取消；过期后任何人都可以取消。\n\n四个必需事件（`CoordinationProposed`、`Accepted`、`Executed`、`Cancelled`）让链下 agent 可以跟踪进度。该域应当可通过 [ERC-5267](/eip-5267/) 发现。\n\n## 示例代码\n\n意图类型和接口要点：\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nstruct AgentIntent {\n    bytes32 payloadHash;\n    uint64  expiry;\n    uint64  nonce;\n    address agentId;\n    bytes32 coordinationType;\n    uint256 coordinationValue;\n    address[] participants;   // unique, ascending, includes agentId\n}\n\nbytes32 constant AGENT_INTENT_TYPEHASH = keccak256(\n    \"AgentIntent(bytes32 payloadHash,uint64 expiry,uint64 nonce,address agentId,\"\n    \"bytes32 coordinationType,uint256 coordinationValue,address[] participants)\"\n);\n\nfunction intentStructHash(AgentIntent calldata i) pure returns (bytes32) {\n    return keccak256(abi.encode(\n        AGENT_INTENT_TYPEHASH, i.payloadHash, i.expiry, i.nonce, i.agentId,\n        i.coordinationType, i.coordinationValue,\n        keccak256(abi.encodePacked(i.participants))\n    ));\n}\n```\n\n`getIntentHash` 返回的是这个 **struct hash**，而不是完整的 EIP-712 摘要，每个接受的 `intentHash` 字段也必须使用相同的值。\n\n## 需要注意\n\n- 状态为 **Final**。\n- 仅支持单链；跨链协调不在范围内。\n- 参与者可能签署相互冲突的意图（双重签名）。核心标准不会惩罚这种行为，预期由罚没或声誉模块来处理。\n- 如果 `coordinationData` 暴露了策略，就可能被抢跑。规范建议使用带有 commit-reveal 或加密的隐私模块。\n- 请为意图和接受都设置合理的过期时间，让执行者有时间采取行动。\n"}},"requiredBy":[8107]}
