Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.46 KB

readme.md

File metadata and controls

27 lines (19 loc) · 1.46 KB

Nft metadata generator script

This is an ALL-IN-ONE NFT SCRIPT which can help you in:

  1. Generating complete custom metadata, including attributes or adding rarity.
  2. Generating 100% different images/nfts from the individual components based upon the rarity.
  3. Publishing both of your metadata and collection off-chain being completely decentralized, without worrying about several third party services.

Follow the below steps in order to publish your nft collection successfully on-chain:

Pre-requisites

  1. Clone the repository.
  2. Run npm install to install dependencies.

We'll be using Nft.Storage library to store our whole nft collection.

  1. Visit and login

  2. Create your api key and copy that

  3. Inside your root folder, create a .env file, create a variable NFT_STORAGE_KEY, and store your api key in it.

  4. Replace the existing components with yours' inside the components directory. Rename the traits folders names inside components.

  5. Replace the existing traits, and weights (rarity percentage) inside traits.py with the ones of your nft collection.

  6. Assign your traits with the related component file name (inside components) in traits_file.py.

  7. Replace the paths of traits files in generate.py.

  8. 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.

  9. Run node .\store.js script to publish your whole collection.