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 following image shows an item listed in the Mythical Marketplace. Note how metadata is displayed.

Item metadata has the following characteristics:

Creating an item type means a collection will be created on-chain.

curl --location 'http://127.0.0.1:8080/v1/item-types' \
--header 'Content-Type: application/json' \
--data '{
    "collectionName":"itemtype test 1",
    "maxSupply":10,
    "mintMode":"mintmod"
}'

Once the item type is created, items can be granted.

Last updated