- Generating complete custom metadata, including attributes or adding rarity.
- Generating 100% different images/nfts from the individual components based upon the rarity.
- Publishing both of your metadata and collection off-chain being completely decentralized, without worrying about several third party services.
- Clone the repository.
- Run npm install to install dependencies.
We'll be using Nft.Storage library to store our whole nft collection.
-
Visit and login
-
Create your api key and copy that
-
Inside your root folder, create a .env file, create a variable NFT_STORAGE_KEY, and store your api key in it.
-
Replace the existing components with yours' inside the components directory. Rename the traits folders names inside components.
-
Replace the existing traits, and weights (rarity percentage) inside traits.py with the ones of your nft collection.
-
Assign your traits with the related component file name (inside components) in traits_file.py.
-
Replace the paths of traits files in generate.py.
-
Run generate.py script to generate the metadata and images collection for your nfts, Running this script will create a new metadata and images folder.
-
Run node .\store.js script to publish your whole collection.