NFT Information and Rarity
Last updated
Last updated
You can calculate rarity and ranking for your collection or any other on chain collection. The steps as follows:
Retrieve NFT information and calculate trait percentage.
Calculate rarity score and rank based on NFT information file from previous step. We support 4 type of rarity including:
Trait Rarity Model
Mean/Average Trait Rarity Model
Statistical Rarity Model
Rarity Score Model
For more information on rarity model calculation, please visit this about NFT rarity.
Please, make sure that you are in the js/cli
directory before you proceed with this step.
-d, --data <string>
true
data
Data folder that store created NFT contract information
-c, --config <string>
true
data/master.csv
MasterCSV file
-m, --metadata <string>
true
example-assets/metadata
Metadata folder
-cn, --name <string>
false
Soil
Name
-cd, --description <string>
false
"Soil Collection"
Description
-o, --output <string>
false
nfts.json
NFT information output file name
You will be greeted with this after its calculate collection trait successfully.
-d, --data <string>
true
data
Data folder that store created NFT contract information
-c, --contract <string>
true
terra16ds898j530kn4nnlc7xlj6hcxzqpcxxk4mj8gkcl3vswksu6s3zszs8kp2
Contract address
-n, --network <string>
true
mainnet
Terra network. (localterra, testnet and mainnet)
-h, --height <number>
false
1000000
Block height that you want to snapshot. (Can use only mainnet)
-o, --output <string>
false
galactic.json
NFT information output file name
You will be greeted with this after its calculate collection trait successfully.
-d, --data <string>
true
data
Data folder that store created NFT contract information
-i, --input <string>
true
data/terra16ds898j530kn4nnlc7xlj6hcxzqpcxxk4mj8gkcl3vswksu6s3zszs8kp2_nfts.json
Input NFT information file from calculate-trait/calculate-trait-onchain command.
-o, --output <string>
false
galactic_rank
Output rarity file name in csv format
You will be greeted with this after its calculate collection rarity successfully.