ERC-8323 Source Token Agent Binding (Source-Token Agent Binding for ERC-8004)

Draft · NFTs & multi-token · created 2026-07-08

A standard that creates an ERC-8004 agent identity based on an NFT the holder already owns, while permanently recording which token it originated from and separately checking, on an ongoing basis, whether that token is still held.

Why it is needed

ERC-8004 assumes agents are newly issued independent of any existing asset. In practice, though, agents are often built on top of NFTs the holder already owns, such as profile picture (PFP) tokens, membership tokens, or game characters. Two distinct facts get easily conflated here. Which token an agent originated from is a fact that, once set, should never change. Whether that token is still held now is a fact that can change at any time. ERC-8217 only records that an external object controls the identity, so it cannot handle the case where provenance should persist after the token is sold. ERC-6551 has the opposite structure, where the token owns the wallet, so it cannot solve this problem either. Merging both facts into a single field means the provenance record disappears the moment the token is sold, while using a cached value means losing currency.

What to implement

In depth

Core interface IAgentSourceBinding

The registry must be both an ERC-721 and an ERC-8004 identity registry, and ERC-165 supportsInterface(0x27eba962) must return true. registerWithSource must revert unless ownerOf confirms that msg.sender owns sourceTokenId; once confirmed, it mints a new agent to msg.sender, permanently records (boundCollection, sourceTokenId), and emits SourceNFTLinked. The source token is never locked or transferred. boundCollection never changes for as long as the registry exists.

Query-only interface IAgentSourceBindingView

This is a separate interface for implementations that support only queries without a registration function, such as self-sourced agents whose source is themselves rather than an external collection. It has only the three functions getSourceNFT, hasSourceNFT, and isSourceNFTOwnershipValid, with ERC-165 id 0x8b3597c9. Such implementations do not have all five functions, so they must not advertise 0x27eba962, and should honestly advertise only the interfaces they implement. A complete IAgentSourceBinding implementation is recommended to also return true for 0x8b3597c9.

Registration rules

registerWithSource must verify the caller's real-time ownership at the moment of the call, and there must be no function that re-binds, deletes, or overwrites a binding once recorded. Re-minting, where the same source token serves as the basis for different agents across changes of owner, is not prohibited. The registry must treat the bound collection as untrusted code and must not depend on state assumptions before or after the ownerOf call. Implementations that transfer or escrow value must revert the entire registration if the transfer fails, and no ETH must be left stuck in the registry; fee-free registries are recommended to reject nonzero msg.value.

Provenance vs. real-time ownership

getSourceNFT and SourceNFTLinked represent permanent provenance and must remain valid even after the source token is sold. isSourceNFTOwnershipValid is a real-time value computed from the ownerOf result at the time of the call. Simply checking whether ownerOf(source token) equals ownerOf(agent) violates the spec; all three of the following cases must return true: (a) the agent's current owner holds it directly, (b) the agent's standard ERC-6551 token bound account holds it, and (c) the binding contract itself holds it in escrow. The account in (b) must be fixed to the single account computed from the ERC-6551 registry address 0x000000006551c19487814612e58FE06813775758 together with the implementation and salt declared by the registry. Calls must revert for a nonexistent agentId or an agentId with no binding, and must return false only when a binding exists but the source token has been burned.

Consumer-side obligations

The party taking an irreversible action based on this identity (the consumer) must call isSourceNFTOwnershipValid at the moment it actually executes that action, not at the moment approval was granted. A contract must re-verify within the same transaction, and an off-chain actor must re-verify as close to execution as possible and record the verification timestamp. If re-verification returns false, the action must not proceed even if a prior approval existed, and this failure must be recorded separately from the approval record. Because re-minting is permitted, there is no single 'the agent' corresponding to one source token, so consumers must handle identity strictly at the agentId level. getSourceNFT may be cached, but isSourceNFTOwnershipValid must be freshly checked for every action, and since changes in binding validity surface as Transfer events on the source collection, indexing requires watching both the registry and the source collection together.

Visual metadata inheritance

ERC-8004 requires an agent's URI to link to a registration file, and this standard recommends putting the source token's image, name, and attributes into that registration file so the agent appears to look like the source token. Whether to reference the same content identifier (CID) directly or keep a separate derived copy is left to the implementation, and this does not change the document format required by ERC-8004 itself. An agent intended to have a separate identity may have different visual metadata.

Binding scope, backwards compatibility, and current status

A single registry is bound to exactly one source collection fixed at deployment time, and this never changes afterward. This standard is purely additive to ERC-8004 and does not change any existing interface, so a consumer unaware of IAgentSourceBinding can still treat the agent as an ordinary ERC-8004 identity. This proposal is currently in Draft status, and its details may change or discussion may stall going forward.

Things to watch out for

Original ERC · ← ERCs