Mint an NFT#

At a glance

This is a three-part tutorial on minting a non-fungible token (NFT) on the Concordium blockchain. You will need Rust, cargo-concordium, concordium-client, and an IPFS node installed, plus a Concordium testnet account. After reading this overview, you will understand the three-part structure — upload to IPFS, build and deploy the contract, mint and transfer — and be ready to follow each part in order.

In this tutorial, you are going to mint an NFT on Concordium blockchain. First you will learn the basics to set up your development environment. Note that in this tutorial most of the commands are for UNIX-like systems and will not work on Windows (though you could use Windows Subsystem for Linux).

All development is completed using concordium-client and includes the following examples:

This tutorial uses a photograph stored on the InterPlanetary File System (IPFS). In order to store the photograph on IPFS, you will need to install and run a IPFS node on your computer. There are other options like pinning services, but they are not in the scope of this tutorial. You will also create a metadata file that will be stored on IPFS. By doing this, you eliminate the risk of deletion of the photo on a centralized photo album and protect your asset. You will store this metadata’s URL on-chain and be able to read it.

Attention

Before starting the next steps, make sure that you have setup the developer environment with the tools needed.

Was this article helpful?