This script can be used to mint a new NFT collection on the Algorand blockchain as (ARC19 and ARC69 NFTs) once you've downloaded your collection from AlgoMinter.
- Clone this repository
- Remove the
.gitkeep
file from theinput
directory - Run
npm install
to install the dependencies - Create a
.env
file in the root directory, copy the contents of.env.example
, and fill in the required values.
- Create and download your collection from AlgoMinter
- Unzip the downloaded file and copy the contents to the
input
directory - Run
npm run mint
to mint your collection.
It is a good idea to mint your collection with ALGO_NETWORK=TestNet
in the .env
file first to test the minting process. Once you are satisfied with the results, you can mint your collection on the mainnet by changing ALGO_NETWORK=MainNet
in the .env
file.
If there is an error during the minting process, the script will stop and display the error message. You can then fix the issue and run the script again after updating SKIP_FIRST_N
in the .env
file to the number of NFTs that were successfully minted.