- On-chain collections / tokens
- Off-chain collections / assets (after initial off-chain asset registration)
Register a Collection
UseregisterTokenSchema
to attach a schema at the collection level (omit or set tokenId
to null
). This supersedes the deprecated registerCollection
mutation.
Authorization will require the collection/NFT contract owner (or an authorised wallet). Ensure the schema is already created via
createSchema
.GraphQL Mutation (Collection-Level)
Token-Level Override (Optional)
Register a specific token to a different schema (falls back to collection-level if token record absent).Response Shape
On success:Register Off-Chain Asset With Schema
After creating (or ensuring the existence of) an off-chain asset viaregisterOffChainAsset
, link its collection (or optionally a specific off-chain NFT token) to a schema using the same registerTokenSchema
mutation. Off-chain collection IDs use the pattern:
off-chain:{creatorId}:{creatorCollectionId}
(collection-wide)
and individual NFT tokens may add a token segment when referencing the asset itself, but schema linkage for token-level overrides still supplies the collection ID plus a tokenId value (mirroring on-chain semantics).
You do NOT register schema linkage with the full
did:fv-asset:off-chain:...
DID. Use the raw off-chain collection ID (off-chain:...:...
) and, for token-level overrides, the tokenId
you used during registerOffChainAsset
.Off-Chain Collection-Level Schema Link
Off-Chain Token-Level Override (Optional)
If a specific off-chain NFT (withtokenId
) requires a divergent schema:
(Deprecated) Previous Method
registerCollection
is deprecated and will be / has been removed. Use registerTokenSchema
for all new integrations.