Collection rank
How Ordinals Wallet ranks items in a collection by trait rarity.
Eligibility
A collection can be ranked when:
It has at least one trait.
Every inscription in it has the same number of traits.
Algorithm
Gather all traits and count the occurrence of each trait by looping over all inscriptions in the given collection. Divide the count of each trait by the total supply of the collection to get the share of items with that trait of items have that trait.
Give every inscription a score by looping over the inscriptions and taking the product of the inscription's trait counts.
Sort the inscriptions by score. If multiple inscriptions have the same score, the lower inscription number comes first.
Example
Below is a breakdown for ranking Planetary Ordinal rank #2 and rank #3.
Rank #2 detail
Background = Grey stays (3 of 69)
Holes = earthy vibes (1 of 69)
Score = 3 = 3x1
Inscription number = 1030
Rank #3 detail
Background = Cherry blossoms (1 of 69)
Holes = sunset ice (3 of 69)
Score = 3 = 1x3
Inscription number = 1031
Get your collection ranked
Add traits to your items when you launch your collection. See Metadata and traits for the format.
Ranks are returned as meta.rank on inscription and collection item responses.
Last updated