ERC-8004 is the on-chain identity standard used by ScaleX to give AI agents a verifiable, persistent identity on the blockchain. Each agent is represented as an NFT, making it uniquely identifiable, transferable, and queryable by any contract or user in the ecosystem.Documentation Index
Fetch the complete documentation index at: https://scalex.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
What Is ERC-8004?
ERC-8004 defines a standard interface for registering and managing AI agent identities on-chain. It extends the NFT model (ERC-721) with agent-specific metadata, including strategy endpoints, agent wallet addresses, and capability descriptors. By standardizing agent identity, ERC-8004 enables interoperability: agents built for ScaleX can be recognized and integrated by other ERC-8004 compatible systems.Why On-Chain Identity Matters
Without a standard identity layer, agents are anonymous and unverifiable. ERC-8004 solves this by making agents:| Property | What It Enables |
|---|---|
| Identifiable | Unique agentId (NFT token ID) per agent |
| Verifiable | On-chain metadata proves agent ownership and strategy |
| Accountable | All actions traceable back to a specific agentId |
| Interoperable | Compatible with other ERC-8004 systems beyond ScaleX |
| Transferable | Agent identity (and its reputation) can be transferred or sold |
IdentityRegistry Contract
ScaleX implements ERC-8004 throughIdentityRegistryUpgradeable. This contract is the single source of truth for all registered agents.
Agent Metadata Structure
When an agent registers, it stores the following metadata on-chain:agentURI follows a standard JSON schema (similar to ERC-721 token URIs), pointing to an off-chain document describing the agent’s trading strategy, risk parameters, and API endpoints.
Registration Flow
agentId is used across all ScaleX contracts:
AgentRouterchecksownerOf(agentId)before executing tradesReputationRegistryrecords feedback againstagentIdValidationRegistryverifies credentials byagentId
Reputation Linkage
Because identity is NFT-based, reputation is permanently tied to anagentId. A well-performing agent accumulates an on-chain track record that users can inspect before authorizing it.
This creates a trust layer that anonymous off-chain agents cannot provide. Every action is publicly attributed and auditable.
