Metadata Attributes

🔭 Attributes overview

Attributes help attach rich features/properties to the NFTs. They may signify scores, levels, traits, history, evolution of the NFT. Investors factor in attributes while pricing the token while gamers value the attributes because they may unlock features in a game.

Because NFT is an open standard, various platforms display attributes in various ways

  • Opensea:
  • Looksrare:
  • Rarible:

🪧 Specs and appearance

Each attribute in the list of attributes is an object like the following :

{
      "trait_type": "Sell Value", 
      "value": "225",
      "display_type": "number"
}
  • Trait type: This is the name of the attribute. It can be any string. eg. Sediment Type

  • Value: This can be either a string or a number.

    • Number:

      • Ranking: display_type field is missing, the Platforms will consider it to be like a Rank and compare it against all other tokens in the contract

      • Stats: If however display_type is number then platforms will consider it to be a Stat and compare only against the highest one for this trait type.

  • String: If no display_type field exists then platform will assume it to be a string and calculate rarity on exact matches of this trait_type against all other tokens in the contract. If display_type is mentioned then the rendering is defined by the display_type (eg. Date)

  • Display Type : This helps show your properties in interesting ways on Opensea

    • string: Will consider each unique string of this Trait and calculate rarities accordingly. Eg. "Mallo" value of "Southern Resource" trait type has 0.06% rarity in the entire collection.
    • date: The value should be a number which is unix timestamp (seconds).
  • number: Uses the value to poplate the Stats section - considering the value as a "level"
  • boost_percentage: Uses the value as the % boost in the image below.

  • boost_number: Uses the value as a boost number instead of % in the image above