Desktop
Prerequisite
Since we are using mintbase behind the scenes, you need to create a account on mintbase first and then follow these steps
Once you connect your wallet, create a mintbase store
You will get a store contractId which will be your nftContractId to mint NFT
If you want to mint NFT using some other wallet address(different from one which you used to create the store), first add that as a minter to the store
const nftMetadata = {
title: 'SampleNFT#1'
description: 'sample NFT from Leap Near SDK',
file: [Object] // uploaded file object,
amount: 1 // amount of NFTs to be minted, max value - 99
}
await sdk.mintNFT(nftContractId, nftMetadata, accountId)
Response
the method also returns the transaction JSON
const transaction = await sdk.mintNFT(nftContractId, nftMetadata, accountId)
Last updated