For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

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

  2. Give every inscription a score by looping over the inscriptions and taking the product of the inscription's trait counts.

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