ERC-8001 · Final · ERC · 2025-08-02
ERC-8001: Agent Coordination Framework
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 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.
- Propose. The initiator (
agentId) signs anAgentIntentunder the EIP-712 domain{name: "ERC-8001", version: "1", chainId, verifyingContract}. The intent holds a hash of the off-chainCoordinationPayload, an expiry, a per-agent nonce that must strictly increase, acoordinationTypeid, and theparticipantslist, which must be unique, sorted ascending and include the initiator. - Accept. Each participant submits an
AcceptanceAttestationreferencing the intent's struct hash, with its own expiry and aconditionsHashfor its constraints. Signatures may be ECDSA (65-byte or compact 64-byte EIP-2098) or ERC-1271 for contract wallets. - Ready. Once all participants have accepted, status becomes
Ready. Core requires unanimity; threshold policies belong in modules. - Execute. Anyone calls
executeCoordinationwith the full payload. It reverts if the intent or any acceptance has expired, or if the payload does not matchpayloadHash. - 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.
Sample code
The intent type and interface essentials:
// 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
coordinationDatareveals 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.