CreateNftCollection opens the namespace, MintNft issues a token, TransferNft moves it. Identity collections additionally bind each token to a DID for credentialing.
When to use this
- Issue badges, certificates, or proofs of attendance.
- Mint identity-bound credentials that cannot leave their owner DID.
- Tokenise rights to digital or physical assets.
Prerequisites
- A funded controller DID for the new collection.
- A metadata document hosted on IPFS or another content-addressed store.
Recipe
Create the collection
Standard collections are transferable. Identity collections bind each token to a DID at mint time and reject
TransferNft for that token.Mint a token
Token ids are 128-bit decimals on the wire. Use a deterministic source (e.g. an off-chain counter or a hash of the recipient) to avoid collisions.For an identity collection, set
identity:Reading state
Common errors
| Symptom | Cause | Fix |
|---|---|---|
collection_id already exists | Reused id | Choose a unique id |
token_id already minted | Duplicate token | Pick a different token id |
identity binding required | Identity collection without identity field | Add the IdentityBinding payload |
transfer of identity NFT denied | Tried to TransferNft an identity token | Identity tokens are soulbound by design |
mint authority not satisfied | Sender ≠ controller (or whichever authority is set) | Submit from the configured mint authority |
See also
- Primitive: native NFTs
- Transaction reference: MintNft
- Cookbook: Set up social recovery — for protecting collection controller keys.