How to create and mint NFT/SFT?
Last updated
Last updated
SFTs are similar to NFTs however due to their similarity to ERC1155, there can be multiple tokens per SFT collection. Each SFT token has a unique ID, and the collection owner can mint multiple tokens with the same ID. To create your SFT collection, call the sft.createCollection()
extrinsic with the following parameters:
To create an SFT token within the collection, call the sft.createToken()
extrinsic with the following parameters:
Once your token is created, the collection owner can call the sft.mint()
method to start minting additional tokens so long as the max issuance for that token has not been reached. The owner can pass in a tuple of serialNumbers and quantities to mint multiple tokens at once.
To create your NFT collection, call the nft.createCollection()
extrinsic with the following parameters:
Caution: The royaltiesSchedule
is in per mill (parts per million) scaling, so if you want a 10% royalty, that would be 100,000
(as 100_000 / 1_000_000 = 0.1
).
Once your collection is created, the collection owner can call the nft.mint()
method on the collection to start minting additional tokens so long as the max issuance has not been reached: