Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article covers ERC8001, a proposal for a minimal framework that enables multiple agents to coordinate securely and verifiably on a single blockchain.
This article translates, summarizes, and expands on the proposal below.
I have also covered a range of EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.
Overview
ERC8001 defines a minimal on-chain mechanism that allows multiple parties, or agents, to coordinate their actions on a single blockchain. The initiating user (the initiator) posts an intent, a machine-readable message describing the desired action. Each participant submits an acceptance attestation, a verifiable proof of agreement in the form of a signature or a contract-validated signature. Once the required acceptances have been collected and remain fresh (unexpired), the intent becomes eligible for execution.
The standard defines the following elements.
-
Typed data
A format that specifies the structure of messages to ensure interoperability during signature verification.
-
Lifecycle
The sequence from posting an intent through collecting acceptances and determining whether execution is permitted.
-
Required events
Events that allow clients and indexers to track state correctly.
-
Verification rules
Conditions that must be satisfied before execution, including signature validity, canonical participant ordering (sorted with no duplicates), and expiry checks.
The framework also uses the following existing standards to support compatibility with wallets and contract signatures.
-
EIP712
A standard for signing typed structured data.
-
ERC1271
A standard for signature validation by contract accounts.
-
EIP2098
A compact representation of signature data.
-
EIP5267
A standard for retrieving EIP712 domain information on-chain.
For more on EIP712, see the following article.
[EIP712] Hashing and Signing Typed Structured Data
For more on ERC1271, see the following article.
[ERC1271] Verifying Signatures with Smart Contracts
For more on EIP2098, see the following article.
[ERC2098] Compact Ethereum Signatures
For more on EIP5267, see the following article.
[ERC5267] Retrieving Information Needed to Construct an EIP712 Domain
Privacy, reputation, threshold policies (such as how many of a group must approve), bonding (posting collateral), and cross-chain semantics are intentionally outside the scope of ERC8001. These are intended to be implemented as extension modules built around ERC8001. Standardizing a minimal core while leaving extensions to modules balances interoperability and flexibility.
Compatibility and Scope
| Category | Elements | Role |
|---|---|---|
| Compatible standards | EIP712, ERC1271, EIP2098, EIP5267 | Provide the foundations for wallet interoperability, contract signatures, compact signatures, and domain discovery. |
| Defined by the core | Typed data, lifecycle, required events, verification rules, canonical participant lists | The minimal set of features intended to enable consistent, reproducible implementations. |
| Delegated to modules | Privacy, reputation, threshold policies, bonding, and cross-chain coordination | Excluded from the core so they can be combined according to the use case. |
Simplified Coordination Flow
sequenceDiagram
participant Initiator as イニシエータ
participant Chain as チェーン(ERC-8001)
participant P1 as 参加者1
participant P2 as 参加者2
Initiator->>Chain: インテントを投稿(EIP-712型付きデータ)
P1->>Chain: 受諾アテステーション(署名/コントラクト署名)
P2->>Chain: 受諾アテステーション(署名/コントラクト署名)
Chain->>Chain: 必要受諾の充足+期限内か検証
Chain-->>Initiator: 実行可能状態(executable)
The original diagram retains its Japanese labels: the initiator posts an EIP712 intent to the ERC8001 contract, participants 1 and 2 submit signed acceptance attestations, and the contract checks whether the required acceptances are present and unexpired before reporting that the intent is executable.
Motivation
In DeFi and MEV, multiple autonomous agents may need to act together without a trusted central coordinator. Existing intent standards, such as ERC7521 and ERC7683, primarily define flows involving a single initiator rather than standardizing agreement among multiple parties.
For more on ERC7521, see the following article.
[ERC7521] An Intent Standard Supporting Contract Wallets
For more on ERC7683, see the following article.
[ERC7683] An Interface for Cross-Chain Intents
ERC8001 provides a minimal on-chain primitive to address this gap. An initiator presents an intent in EIP712 format, and participants submit acceptances based on EIP712 or ERC1271. Execution becomes possible when the required acceptances have been collected and have not expired. The participant list uses a canonical representation: it is sorted and contains no duplicates. Together with the signature domain and nonce rules, this supports consistent verification, replay protection, and wallet interoperability.
Privacy, threshold-based agreement, collateral, and cross-chain coordination have been separated into modules because their requirements vary considerably by application. This keeps the core small and stable while allowing applications to select and combine extensions when needed.
Terminology
| Term | Description |
|---|---|
| Intent | A desired action represented as signable typed data. |
| Acceptance attestation | Verifiable proof that a participant agrees to an intent, including an EOA signature or signature validation provided by a contract under ERC1271. |
| Fresh (unexpired) | An acceptance whose expiry time has not passed. Explicit expiry rules help prevent the reuse of stale agreements. |
| Canonical participant list | A deterministic list of participants with a specified ordering and no duplicates. It supports consistent verification and replay protection. |
| Replay protection | Protection against unauthorized reuse of a signature in a different context or at a different time. |
| Module | An optional extension outside the core standard, for example, one that adds privacy or threshold policies. |
Specification
Status Codes
Implementations must define the standard status codes returned by getCoordinationStatus.
Status
enum Status { None, Proposed, Ready, Executed, Cancelled, Expired }An enum representing the current state of an intent. It contains the following values.
| Status | Description |
|---|---|
None |
The default zero state, indicating that the intent does not exist. |
Proposed |
An intent has been proposed, but not all acceptances have been collected. |
Ready |
All participants have accepted and the intent is eligible for execution, subject to freshness checks. |
Executed |
The intent has been executed successfully. |
Cancelled |
The intent has been explicitly cancelled. |
Expired |
The intent expired before execution. |
Overview
ERC8001 standardizes the following elements.
| Element | Description |
|---|---|
| EIP712 domain | A common domain definition for coordination among agents. |
| Typed data structures | AgentIntent, CoordinationPayload, and AcceptanceAttestation. |
| Deterministic hashing rules | Consistent rules for computing data hashes. |
| Standard interface | Defines IAgentCoordination. |
| Lifecycle semantics | Proposal, acceptance, then execution or cancellation. |
| Errors and status codes | Explicit failure reasons and status definitions. |
EIP712 Domain
The EIP712-compliant domain is defined in the following format.
{name: "ERC-8001", version: "1", chainId, verifyingContract}This is the common domain identifier used to verify intents and signatures. Implementations use this format to maintain consistent EIP712 signatures. Exposing the domain through ERC5267 is also recommended.
Main Type Definitions
AgentIntent
struct AgentIntent {
bytes32 payloadHash;
uint64 expiry;
uint64 nonce;
address agentId;
bytes32 coordinationType;
uint256 coordinationValue;
address[] participants;
}A struct representing the intent proposed by an agent. It contains information needed for coordination, including participants and expiry.
Fields
payloadHash- The
keccak256hash of theCoordinationPayload.
- The
expiry- The intent's expiry time in Unix seconds. It must be in the future at proposal time.
nonce- A number unique to the agent.
- It must be greater than
agentNonces[agentId].
agentId- The proposer (initiator) and signer.
coordinationType- An identifier for the type of coordination, for example,
keccak256("MEV_SANDWICH_COORD_V1").
- An identifier for the type of coordination, for example,
coordinationValue- An informational value.
- Modules may impose constraints based on this value.
participants- The participant list.
- The addresses must be sorted in ascending order, contain no duplicates, and include
agentId.
CoordinationPayload
struct CoordinationPayload {
bytes32 version;
bytes32 coordinationType;
bytes coordinationData;
bytes32 conditionsHash;
uint256 timestamp;
bytes metadata;
}Contains the specific data used for coordination. The struct holds detailed data and metadata that may originate off-chain.
Fields
version- A version identifier for the payload format.
coordinationType- Must match
AgentIntent.coordinationType.
- Must match
coordinationData- Opaque data as far as the core is concerned.
- Modules can interpret it according to their own requirements.
conditionsHash- A hash of the conditions.
- Represents application-specific constraints.
timestamp- The creation time, for informational purposes.
metadata- Optional metadata.
AcceptanceAttestation
struct AcceptanceAttestation {
bytes32 intentHash;
address participant;
uint64 nonce;
uint64 expiry;
bytes32 conditionsHash;
bytes signature;
}Data proving that a participant has accepted an intent. Acceptance is represented by a signature or a contract-validated signature.
Fields
intentHash- The intent struct hash obtained through
getIntentHash(intent).
- The intent struct hash obtained through
participant- The address of the participant that signed the acceptance.
nonce- An optional sequence number.
- Implementations may omit acceptance nonce tracking, although the field remains part of the typed data.
expiry- The acceptance expiry time.
- It must be in the future both when the acceptance is submitted and when the intent is executed.
conditionsHash- A hash of participant-specific conditions.
signature- Signature data.
- A 65-byte or 64-byte ECDSA signature, or an ERC1271-compatible signature.
Typed Data Hashing
The following rules define how intents and acceptances are hashed for signing and verification.
AGENT_INTENT_TYPEHASH
bytes32 constant AGENT_INTENT_TYPEHASH = keccak256(
"AgentIntent(bytes32 payloadHash,uint64 expiry,uint64 nonce,address agentId,bytes32 coordinationType,uint256 coordinationValue,address[] participants)"
);ACCEPTANCE_TYPEHASH
bytes32 constant ACCEPTANCE_TYPEHASH = keccak256(
"AcceptanceAttestation(bytes32 intentHash,address participant,uint64 nonce,uint64 expiry,bytes32 conditionsHash)"
);_participantsHash
function _participantsHash(address[] memory ps) internal pure returns (bytes32) {
return keccak256(abi.encodePacked(ps));
}Computes the hash of the participant list.
The address array is hashed using keccak256.
Addresses must be sorted in ascending order and contain no duplicates.
_agentIntentStructHash
function _agentIntentStructHash(AgentIntent calldata i) internal pure returns (bytes32) {
return keccak256(abi.encode(
AGENT_INTENT_TYPEHASH,
i.payloadHash,
i.expiry,
i.nonce,
i.agentId,
i.coordinationType,
i.coordinationValue,
_participantsHash(i.participants)
));
}Computes the hash of the AgentIntent struct.
_agentIntentDigest
function _agentIntentDigest(bytes32 domainSeparator, AgentIntent calldata i) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x01", domainSeparator, _agentIntentStructHash(i)));
}Produces the final digest to be signed under EIP712.
_acceptanceStructHash and _acceptanceDigest
function _acceptanceStructHash(AcceptanceAttestation calldata a) internal pure returns (bytes32) {
return keccak256(abi.encode(
ACCEPTANCE_TYPEHASH,
a.intentHash,
a.participant,
a.nonce,
a.expiry,
a.conditionsHash
));
}
function _acceptanceDigest(bytes32 domainSeparator, AcceptanceAttestation calldata a) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x01", domainSeparator, _acceptanceStructHash(a)));
}Compute the struct hash and digest used to verify an acceptance attestation.
Interface
IAgentCoordination
interface IAgentCoordination {
event CoordinationProposed(...);
event CoordinationAccepted(...);
event CoordinationExecuted(...);
event CoordinationCancelled(...);
function proposeCoordination(...) external returns (...);
function acceptCoordination(...) external returns (...);
function executeCoordination(...) external returns (...);
function cancelCoordination(...) external;
function getCoordinationStatus(...) external view returns (...);
function getRequiredAcceptances(...) external view returns (...);
function getAgentNonce(...) external view returns (...);
}The standard interface for managing proposals, acceptances, execution, and cancellation of intents among agents. The abbreviated interface above is illustrative; the concrete function signatures appear below.
proposeCoordination
function proposeCoordination(AgentIntent calldata intent, bytes calldata signature, CoordinationPayload calldata payload) external returns (bytes32 intentHash);Proposes an intent.
Rejects invalid signatures, expired intents, invalid nonces, and invalid participant configurations.
A successful proposal accepts the valid signature, emits CoordinationProposed, and sets the state to Proposed.
Parameters
intent- The proposed
AgentIntentdata.
- The proposed
signature- The initiator's signature.
payload- The
CoordinationPayloaddescribing the coordination.
- The
Return value
intentHash- The hash of the registered intent.
acceptCoordination
function acceptCoordination(bytes32 intentHash, AcceptanceAttestation calldata attestation) external returns (bool allAccepted);Accepts an intent.
Rejects nonexistent or expired intents, nonparticipants, duplicate acceptances, and invalid signatures.
A successful acceptance emits CoordinationAccepted and records the accepting participant.
The function returns true when all required participants have accepted.
Return value
allAcceptedtruewhen all required acceptances have been collected.
executeCoordination
function executeCoordination(bytes32 intentHash, CoordinationPayload calldata payload, bytes calldata executionData) external returns (bool success, bytes memory result);Executes an approved intent.
Rejects an intent that is not ready, has expired, or has a mismatching payload.
Successful execution emits CoordinationExecuted.
Return values
success- A flag indicating whether execution succeeded.
result- Data returned by execution.
cancelCoordination
function cancelCoordination(bytes32 intentHash, string calldata reason) external;Cancels an intent.
The proposer can cancel it before execution, and anyone can cancel an eligible intent after its expiry.
The function emits CoordinationCancelled.
getCoordinationStatus
function getCoordinationStatus(bytes32 intentHash) external view returns (Status status, address proposer, address[] memory participants, address[] memory acceptedBy, uint256 expiry);Retrieves the state of an intent. The returned status is one of the predefined values.
getRequiredAcceptances / getAgentNonce
function getRequiredAcceptances(bytes32 intentHash) external view returns (uint256);
function getAgentNonce(address agent) external view returns (uint64);Retrieve the number of required acceptances and the agent's nonce, respectively.
Semantics
-
proposeCoordinationProcesses proposals, verifies signatures, and enforces monotonic nonces.
-
acceptCoordinationRejects duplicate acceptances and invalid signatures, and manages acceptance records.
-
executeCoordinationPermits execution only when all required acceptances remain valid and the data is consistent.
-
cancelCoordinationTransitions the state to
Cancelled.
Nonces
Each agent's nonce is tracked through agentNonces[agentId].
Acceptance nonce tracking is optional, but if implemented, the nonces must increase monotonically.
Errors
The following errors are recommended.
| Error | Description |
|---|---|
ERC8001_NotProposer |
An unauthorized cancellation attempt by someone other than the proposer, where proposer authorization is required. |
ERC8001_ExpiredIntent |
The intent has expired. |
ERC8001_ExpiredAcceptance |
An acceptance has expired at execution time. |
ERC8001_BadSignature |
An invalid signature. |
ERC8001_NotParticipant |
An acceptance attempt by a nonparticipant. |
ERC8001_DuplicateAcceptance |
A duplicate acceptance. |
ERC8001_ParticipantsNotCanonical |
The participant list is not sorted in ascending order or contains duplicates. |
ERC8001_NonceTooLow |
The nonce is not greater than the previous nonce. |
ERC8001_PayloadHashMismatch |
The payload hash does not match. |
ERC8001_NotReady |
An attempt to execute before all required acceptances have been collected. |
Additional Considerations
ERC8001 aims to provide a minimal framework that makes agreement among multiple participants secure and straightforward to implement. Sorting participant lists in ascending order and removing duplicates avoids ambiguity from different representations of the same participant set, a form of malleability at the data-representation level. The same canonical data therefore produces the same hash, making off-chain deduplication easier.
Separating the intent, which declares the intended action, from acceptance attestations, which prove participants' agreement, enables applications to collect signed acceptances off-chain before submitting them for on-chain verification. Batching or performing a single final on-chain verification can reduce gas costs where the implementation supports that approach. The core interface shown above also supports individual acceptance submissions; a single-transaction batch is not guaranteed by that interface.
Restricting the core to one blockchain also avoids dependence on bridge specifications and their security, making the scope of an audit clearer. If cross-chain coordination becomes necessary in the future, extension modules can support it without complicating the core.
Finally, EIP712's array support allows compatible wallets to display the actual list of participant addresses on their signing screens. This helps signers understand whom they are coordinating with, benefiting both usability and security.
Compatibility
ERC8001 introduces a new interface while retaining compatibility with existing account types. Externally owned accounts (EOAs) use ECDSA signatures, while smart wallets or contract wallets use ERC1271 for signature validation. Because the framework relies on EIP712 typed data signatures without modifying existing standards, it supports interoperability with wallets and indexers.
Reference Implementation
A permissively licensed reference implementation is provided in contracts/AgentCoordination.sol.
https://eips.ethereum.org/assets/eip-8001/contracts/AgentCoordination.sol
The implementation uses minimal ECDSA helpers and also supports ERC1271 signers. It enforces the following core requirements.
- Canonical participant lists, sorted in ascending order with no duplicates.
- Monotonically increasing intent nonces.
- Freshness checks for acceptance attestations.
- No execution until all participants have accepted (the all-participants policy).
The following diagram illustrates a minimal lifecycle flow.
flowchart LR
A[proposeCoordination] -->|署名とノンス検証| B[Proposed]
B -->|acceptCoordination| C{全員受諾?}
C -- いいえ --> B
C -- はい --> D[Ready]
D -->|executeCoordination| E[Executed]
B -->|cancelCoordination| F[Cancelled]
D -->|期限切れ| G[Expired]
The original diagram retains Japanese labels: proposal signature and nonce checks lead to Proposed; acceptance submissions repeat until all participants have accepted; Ready can lead to Executed, while cancellation or expiry leads to the corresponding terminal state.
Security
Replay protection uses EIP712 domain binding and monotonically increasing nonces to prevent unauthorized reuse across contracts or networks. Different verifying contracts or chains have different domains, and an intent nonce at or below the previous nonce is rejected. Together, these controls prevent straightforward replay of the same signed intent.
Signature malleability is mitigated by enforcing a low s value in ECDSA signatures and supporting both 64-byte and 65-byte signature formats, including EIP2098.
Low-s enforcement prevents the high-s alternative representation of an ECDSA signature. Supporting both encodings requires treating them as equivalent authorizations rather than identifying an acceptance by its raw signature bytes.
The core does not prohibit equivocation, in which a participant accepts multiple conflicting intents. Applications can discourage this through modules providing slashing (penalties for violations) or reputation management. For example, an extension could confiscate bonded stake when it detects conflicting acceptances for the same role.
For liveness, intents and their acceptances should have explicit TTLs (time-to-live values). Executors should check that sufficient time remains before execution rather than waiting until the last moment. Near expiry, on-chain congestion increases the risk that execution will fail.
For MEV resistance, if coordinationData contains a strategy, its disclosure may expose it to front-running or similar risks.
Where appropriate, privacy modules using commit-reveal schemes (publishing a commitment before disclosing the underlying data) or encryption can help keep sensitive strategy data private until execution.
Risks and Mitigations
| Risk | Description | Recommended mitigation |
|---|---|---|
| Replay | A signature is reused in a different context. | EIP712 domain binding and strict enforcement of monotonic nonces. |
| Signature malleability | An equivalent alternative signature is substituted. | Low-s enforcement and correct handling of 64-byte and 65-byte signatures, including EIP2098. |
| Equivocation | The same participant accepts conflicting intents. | Slashing and reputation management through modules. |
| Reduced liveness | Expiry or congestion prevents execution. | Explicit intent and acceptance TTLs, with sufficient time allowed for execution. |
| MEV information leakage | Strategies are exposed through coordinationData. |
Privacy modules using commit-reveal schemes or encryption. |
Citation
Kwame Bryan (@KBryan), "ERC-8001: Agent Coordination Framework [DRAFT]," Ethereum Improvement Proposals, no. 8001, August 2025. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-8001.
Conclusion
This article covered ERC8001, a proposed minimal framework for secure and verifiable coordination among multiple agents on a single blockchain.
If you have questions, feel free to contact me by direct message on Twitter.
I also publish material on the following platforms.



