Getting StartedNiftronAuthTokenizationMint Token (CreateBadge)Mint Token with custom Options (CreateBadge)Transactions
Niftron Tokenization
Mint Token (CreateBadge)
This is a predefined function to create a tokenized digital badge. This is furthur explored at this tutorial.
import { CreateBadgeModel, TokenType } from "niftron-sdk";...........const createBadgeModel: CreateBadgeModel = {tokenName: "----Unique Name-----",tokenType: TokenType.SFT,tokenData: "-----Stringified Json From User-----",tokenCount: 10,previewImageUrl: "---imageURL---",};niftron.tokenBuilder.CreateBadge(createBadgeModel).then((res) => {console.log(res);}).catch((err) => {console.log("err" + err);});
Mint Token with custom Options (CreateBadge)
This showcases the custom options that each token utilized in forming a token you desire.
import { CreateBadgeModel, TokenType, CreateBadgeOptionsModel } from "niftron-sdk";...........const createBadgeModel: CreateBadgeModel = {tokenName: "----Unique Name-----",tokenType: TokenType.SFT,tokenData: "-----Stringified Json From User-----",tokenCount: 10,previewImageUrl: "---imageURL---",};const options: CreateBadgeOptionsModel = {tradable: true,//default is falsetransferable: true,//default is falseauthorizable: true,//default is falseencryptData: true,//default is false};niftron.tokenBuilder.CreateBadge(createBadgeModel,options).then((res) => {console.log(res);}).catch((err) => {console.log("err" + err);});