Before explaining how to mint you need to understand the following (Skip if you already know these topics):

Step 1

The first step is to upload a file to a decentralised storage system called IPFS

  1. For reference to the upload file endpoint
  2. You get a file id as a response from the endpoint and it will look like this: “fl_afab213nl12n1” and is the file id. You will need this id in step two.

Step 2

The second step is to create an NFT Template

  1. An NFT Template will define what your NFTs are going to look like and what data will be stored in them. (This allows you to create multiple of the same NFTs very easily and also allows you to double check your work before you start minting/creating the NFT.)
  2. In order to create the NFT template you do not need to use a file but in our case we are going to use the file uploaded in step 1
  3. For a reference to the create NFT template endpoint click here
  4. Once you call the endpoint you will get a response and there will be an NFT template id that will look something like this: “nt_asdf2ndla224”. This template id will be used in step three

Step 3

The last step is to actually mint/create the NFT

OPTION 1: Mint

  1. This step actually mints the NFT using the template data onto the blockchain of your choice (XDAI, Polygon, others coming soon)
  2. Use the template id from step 2 and call the mint endpoint here

OPTION 2: Mint and send

  1. This option does exactly what option one does but also sends the NFT to an email address, wallet address or momint account.
  2. Use the template id from step 2 and call the mint and send endpoint here