Uploading massive amounts of NFT assets and metadata without gas fees has never been easier. This script utilizes the Pinata API so that you can simply specify your assets and metadata, run the script, and generate your own NFT project within minutes with all of the data stored on IPFS and the blockchain. The network used by default is the Avalanche Fuji test network, however you can change it to be whatever you want in hardhat.config.ts
.
- Node==v10.19.0
- NPM==6.14.4
- Make a new
.env
file insrc
and inside of it specify your private keyPRIVATE_KEY=
, your Pinata API keyPINATA_API_KEY=
, and your Pinata API secret keyPINATA_API_SECRET=
- Fund your wallet with test AVAX for the Avalanche Fuji test network
- Run
npm install
- Store your assets in
metadata/images
and your metdata inmetadata/metadata.json
. Inside of themetadata/metadata.json
, set theimage
attribute of each token to the filename of your asset in themetadata/images
- To upload the images to Pinata and IPFS run
npm run upload
, and then to deploy the contract with the metadata runnpm run deploy