An NFT rarity generator compatible with multiple chains
If you are cloning the project then run this first, otherwise you can download the source code on the release page and skip this step.
git clone https://github.com/0xSooki/nft-rarity-generator.git
Go to the root of your folder and run this command
npm install
Alternatively you can run this command if you have yarn installed.
yarn install
- Node version:
>= 16.16.0
- Alchemy profile:
Alchemy API key is required
- MongoDB:
local or cluster link
- You must have your
.env
file setup correctly. Copy the.env.example
and remove the.example
part and provide the following fields:ALCHEMY_API_KEY
,MONGO_DB_URL
,CONTRACT_ADDRESS
andFILE_NAME
(the latter is optional)
In the config.js
you can set the contractAddress, fileName, logPages features.
Set the contractAddress to the collection address you would like to generate the data for.
const contractAddress = "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e"
Set the fileName to the name you would like to name the output file
const fileName = "Doodles"
logPages to true if you would like to see the process of the data generation. (set to true by default)
const logPages = true
If you're done setting everything up, you can start the code and wait for the data to be generated.
npm run build
After finished running the data will be saved in the build folder in the root directory
-
Base rarity generator
-
Add support for multiple rarity generation methods
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!
-
Fork the Project
-
Create your Feature Branch (
git checkout -b feature-name develop
) -
Commit your Changes (
git commit -m 'Add some AmazingFeature'
) -
Push to the Branch (
git push origin feature-name
) -
Open a Pull Request to merge your branch into develop
Distributed under the MIT License. See LICENSE.txt
for more information.
sooki.eth - @sooki - [email protected]
Project Link: https://https://github.com/0xSooki/nft-rarity-generator