Check out Anatomy of a Niftory App to see how these constructs are used in practice.

Niftory NFT Data Model

There are 3 key concepts that yield an NFT in the Niftory ecosystem:

  • NFTSet - A bag of NFTModels, to help you organize your NFTs

  • NFTModel - A blueprint for an NFT, containing everything needed to mint one -- file content, blockchain metadata, etc.

  • NFT - A representation of an NFT (it doesn't have to be minted yet).

An NFTSet contains a number of NFTModels, which contain a number of NFTs

What gets put on the blockchain, and when?

NFT, NFTModel and NFTSet are all blockchain concepts. i.e. when you mint, the Niftory contract creates a Set for an NFTSet, a CollectibleItem for an NFTModel, and a NonFungibleToken for an NFT on the blockchain.

Note that because Niftory supports minting lazily, you can create all these objects in the Admin Portal without minting them, display them to users, and delay the mint step until the actual NFT Transfer (which will handle minting automatically).

This is possible because Niftory API combines both on-chain and off-chain data into one API. When you are querying the API, it is returning data from the Niftory database. The database is updated automatically to represent the source-of-truth on the blockchain.

Last updated