WHITE PAPER
  • API
  • Rank
  • Bitmap Blocktributes
  • Token
  • Disclaimer
Powered by GitBook
On this page
  • Rank Eligibility
  • Rank Algorithm
  • Example
  • Get your collection ranked on Ordiplus

Rank

Collection rank algorithm.

Rank Eligibility

What collections can be ranked?

  • The collection must have at least one trait.

  • Every Inscription in the collection must have the same number of traits.

Rank 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 determined what percent 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 inscription have the same score, the lower inscription number comes first.

Example

    {
      "id": "ddbd767b66bc054bef3910f2fa01e543976f33baaa427a864b43095b939bbd56i0",
      "meta": {
        "attributes": [
          {
            "percent": "4.35%",
            "trait_type": "Background",
            "value": "Grey stays"
          },
          {
            "percent": "1.45%",
            "trait_type": "Holes",
            "value": "earthy vibes"
          }
        ],
        "name": "Planetary Ordinal #61",
        "rank": 2
      }
    },
    {
      "id": "cc987bebc1fc129b1d8fa1fcd5a66f6aeb626711f0c26c5249b726e905385a65i0",
      "meta": {
        "attributes": [
          {
            "percent": "1.45%",
            "trait_type": "Background",
            "value": "Cherry blossoms"
          },
          {
            "percent": "4.35%",
            "trait_type": "Holes",
            "value": "sunset ice"
          }
        ],
        "name": "Planetary Ordinal #39",
        "rank": 3
      }

Get your collection ranked on Ordiplus

PreviousAPINextBitmap Blocktributes

Last updated 1 year ago