-
Clone this repo
git clone https://github.com/spectrum-pool/nft-mint-cardano.git nmc
This clones the repo into a folder called nmc on your computer.
-
Create your project directory folder
This folder will contain all necessary files for the mint.mkdir my-new-nft-mint
-
Create a key pair that will do the minting
./nmc/make-key.sh mainnet my-new-nft-mint
-
Generate a policy
./nmc/make-nft-policy.sh mainnet 10000 my-new-nft-mint
-
Create a
nft-meta
file inmy-new-nft-mint
this is a typical721
Cardano NFT metadata file. For an example seeexample-nft-meta.json
.Note: the file MUST be named `nft-meta`. No filename extension. Not `nft-meta.json` not `nft-meta.txt`, just `nft-meta`. And it must be in your project directory (eg: `my-new-nft-mint`)
touch my-new-nft-mint/nft-meta vim my-new-nft-mint/nft-meta
-
Mint
./nmc/mint-nft.sh mainnet my-new-nft-mint TO_ADDR SVC_ADDR SVC_FEE_LV
Skip the steps make-key.sh
and make-nft-policy
.
Instead copy your vkey, skey and a file containing an address to that wallet
into your project directory.