Create NFT
Create a new NFT on blockchain with the provided details.
import { createNft } from "ternoa-js/nft";
import { generateSeed, getKeyringFromSeed } from "ternoa-js/account"
const createMyFirstNFT = async () => {
try {
const account = await generateSeed()
const keyring = await getKeyringFromSeed(account.seed)
await createNft("My first NFT", 10, null, false, keyring)
} catch(error) {
console.error(error)
}
}