3.0.0 • Published 4 years ago
console-labs-upload-nft v3.0.0
upload-nft
npm i -g console-labs-upload-nftor
yarn global add console-labs-upload-nftThe directory should follows this tree structure
After you're in the images directory, simply run upload-nft command, it will do 3 things:
- It will scan the
imagesto collect all.pngand.giffiles and upload them to the IPFS, what we get back is a CID (Content Identifier - a hash) of that image/gif - When it got the CID back it will modify the matching json metadata file and insert a new property
image - After all metadata files is updated, it will pack the
metadatadirectory into a CAR file and upload that to IPFS as well - which will return another CID back to us.
In the end we will have one single CID that is the root of all metada files and in each file there is an updated ipfs url to the image