Item
Preface
Explanations
Traits used
(use-trait nft-trait .nft-trait.nft-trait)Errors
(define-constant err-admin-only (err u100))
(define-constant err-owner-only (err u101))
(define-constant err-invalid-name (err u301))Variable Data Stored - Maps and Vars
SIP009: Standard Implementations for NFTs
Item Name-URI
Item Mint
There are two ways to mint a new item, by using directly the URI of the NFT, or by minting with the name and getting the URI from the values stored on-chain in the map. Safer and easier to use mint-name as it checks the type of item minted already exists in the map.
mint-name as it checks the type of item minted already exists in the map.Last updated
Was this helpful?