Mint a Basic NFT
Last updated
Last updated
Before getting started, make sure you have the following ready:
account with Alphanet CAPS
Install and set up your editor of choice (we will use Visual Studio Code [VSC] in this tutorial)
Install & NPM
To create an NFT on the Ternoa chain, Ternoa-JS provides you with a createNft
helper to do so. It returns an object promise containing the NFTCreatedEvent
returned by the Ternoa blockchain.
Replace IPFS_CID in the following code snippet with your CID hash previously generated in :
Here are detailed the createNft
helper parameters:
The response returned includes all the information below according to the parameters provided when creating the NFT. Note that MintFee
refers to the fee paid to mint the NFT in Big Number format (MintFeeRounded
is the humanized format, easier and more friendly to use).
The next step will be getting the NFT data from the Ternoa Indexer using the NFT id just generated. Keep it and continue on the guide.
If you face any trouble, feel free to reach out to our community engineers in our .