New Collection

Before we can mint an NFT, we need to define the collection, of which the NFT will be a part, via the deployment of a smart contract. Thanks to the REST-API from the NFT-Kit, we can easily deploy a contract based on the FA2 unified token standard from Tezos with the multiple implementation (equal to ERC-721 or ERC-1155on Ethereum). Which is one of the standards for creating NFTs.

Deploying the Contract

Before you mint a new NFT, you need to have an already deployed smart contract or deploy a new one. For this tutorial, we will deploy a new smart contract.

We will deploy the smart contract on the Tezos testnet "GHOSTNET". We need to provide the owner and the type of smart contract(our NFT Kit supports two smart contract implementations: you can click here for more details).

Response:

{
  "contractAddress": "KT1TPCdHiLQudhH79Zv7e5Ah46YYGQAA4t8o",
  "contractExternalUrl": "https://better-call.dev/ghostnet/KT1TPCdHiLQudhH79Zv7e5Ah46YYGQAA4t8o"
}

After that, you must define who can mint new tokens within an already deployed smart contract. In our case, we take the previously deployed contract.

The "minteraddress" is the account that will sign the mint transaction.

Response:

{
  "operationExternalUrl": "https://better-call.dev/ghostnet/opg/ooRwreh2VAkbK2C3REws1WLsJ1DcSWSZZMvKSrRjzcFji4f3BKL",
  "operationHash": "ooRwreh2VAkbK2C3REws1WLsJ1DcSWSZZMvKSrRjzcFji4f3BKL"
}

Last updated