Tuesday, December 6, 2022

44/365: Minting an NFT

 Today I minted an NFT on the Hedera Hashgraph test network. The process was relatively simple and used Javascript files ran with Node. Using the Hashgraph SDK you have access to classes like PrivateKey, TokenType, and Client. The class of NFT is created by instantiating an instance of the TokenCreateTransaction class and then specifying its TokenType as NonFungibleUnique. Individual NFTs are minted separately. This requires the TokenMintTransaction class and the use of the setMetadata() method which specifies the characteristics of the NFT, such as the art for it. Once minted to an HBAR address, the NFT can be sent anywhere. 

No comments:

Post a Comment

190: Sablier

 The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...