Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.32 KB

README.md

File metadata and controls

55 lines (37 loc) · 1.32 KB

Simple NFT Minting Scripts

How To Use

  1. 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.

  2. Create your project directory folder
    This folder will contain all necessary files for the mint.

    mkdir my-new-nft-mint
  3. Create a key pair that will do the minting

    ./nmc/make-key.sh mainnet my-new-nft-mint
  4. Generate a policy

    ./nmc/make-nft-policy.sh mainnet 10000 my-new-nft-mint 
  5. Create a nft-meta file in my-new-nft-mint this is a typical 721 Cardano NFT metadata file. For an example see example-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 
  6. Mint

    ./nmc/mint-nft.sh mainnet my-new-nft-mint TO_ADDR SVC_ADDR SVC_FEE_LV 
    

Using With Existing Policy

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.