A statistical rarity tool for Solana NFTs.
PRs are welcome!
An article explaining the code line by line can be found here.
In order to better understand how statistical rarity works we've created an algorithm in node typescript disecting moonrank.app algorithm.
-
Clone the project
git clone https://github.com/emotionalboys2001/solana-nft-statistical-rarity.git
-
Navigate to the project
cd solana-nft-statistical-rarity
-
Install the project
yarn install
ornpm install
-
Replace meta_aliens.json with your collections metadata
For a guide on how to do this you can follow this tutorial
After you've downloaded metadata make sure you put the correct file name in sort.ts line 39
After that, just run ts-node sort.ts and it will export a file called sorted_collection.json
. You can then use get_rank.ts
to find ranks for specific NFTs.
If you need any help/support you can reach out to me on twitter @peninsolaio or our discord server