3.0.0 • Published 3 years ago
console-labs-upload-nft v3.0.0
upload-nft
npm i -g console-labs-upload-nft
or
yarn global add console-labs-upload-nft
The 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
images
to collect all.png
and.gif
files 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
metadata
directory 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