Create an item type
Before an item can be granted, you must define the item type. An item type is the blueprint from which individual items can be created. On-chain, item types are collections from which NFTs are minted.
Item types have the following characteristics:
| The name of the collection on-chain. This is an identifier which helps ensure you're looking at the right asset on the block explorer. It's not displayed in the Mythical Marketplace. This is immutable. |
| The maximum quantity of the item which can be granted. |
| Determines how the tokenId of each item is selected when it is minted.
|
defaultMetadata | Item metadata is linked to the item on-chain and displayed in the Mythical Marketplace. Default item metadata is set when no metadata is provided when the item is granted. See item metadata below. |
The following image shows an item listed in the Mythical Marketplace. Note how metadata is displayed.
Item metadata has the following characteristics:
| The title of the asset. |
| A long form description of the asset. |
| A thumbnail style image representing the asset. |
| A list of attributes which describe the asset. These should be used for attributes that convey asset value. Examples could be rarity, strength, level, etc. |
Creating an item type means a collection will be created on-chain.
Once the item type is created, items can be granted.
Last updated