---
eip: 8001
label: ERC-8001
title: Agent Coordination Framework
status: Final
type: Standards Track
category: ERC
created: 2025-08-02
requires: 712, 1271, 2098, 5267
official: https://eips.ethereum.org/EIPS/eip-8001
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-8001.md
canonical: https://eips.huatuo.xyz/eip-8001/
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]
---

# ERC-8001: Agent Coordination Framework

> Minimal, single-chain, multi-party agent coordination using EIP-712 attestations

**TL;DR:** 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.

## What problem does it solve?

Autonomous 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.

ERC-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.

## How it works

**Lifecycle**: `propose → accept (by everyone) → execute`, or `cancel`. Status values are `None, Proposed, Ready, Executed, Cancelled, Expired`.

1. **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.
2. **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.
3. **Ready.** Once *all* participants have accepted, status becomes `Ready`. Core requires unanimity; threshold policies belong in modules.
4. **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`.
5. **Cancel.** Only the proposer may cancel before expiry; after expiry anyone can.

Four mandatory events (`CoordinationProposed`, `Accepted`, `Executed`, `Cancelled`) let off-chain agents track progress. The domain should be discoverable via [ERC-5267](/eip-5267/).

## Sample code

The intent type and interface essentials:

```solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

struct AgentIntent {
    bytes32 payloadHash;
    uint64  expiry;
    uint64  nonce;
    address agentId;
    bytes32 coordinationType;
    uint256 coordinationValue;
    address[] participants;   // unique, ascending, includes agentId
}

bytes32 constant AGENT_INTENT_TYPEHASH = keccak256(
    "AgentIntent(bytes32 payloadHash,uint64 expiry,uint64 nonce,address agentId,"
    "bytes32 coordinationType,uint256 coordinationValue,address[] participants)"
);

function intentStructHash(AgentIntent calldata i) pure returns (bytes32) {
    return keccak256(abi.encode(
        AGENT_INTENT_TYPEHASH, i.payloadHash, i.expiry, i.nonce, i.agentId,
        i.coordinationType, i.coordinationValue,
        keccak256(abi.encodePacked(i.participants))
    ));
}
```

`getIntentHash` returns this **struct hash**, not the full EIP-712 digest, and each acceptance's `intentHash` field must use the same value.

## Things to know

- Status is **Final**.
- It is single-chain only; cross-chain coordination is out of scope.
- A participant can sign conflicting intents (equivocation). The core standard does not punish this; slashing or reputation modules are expected to.
- If `coordinationData` reveals a strategy, it can be front-run. The spec suggests a privacy module with commit-reveal or encryption.
- Give both the intent and acceptances realistic expiries so executors have time to act.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8001
