JSON Metadata

Defines the badge's attributes, such as its name, description, image, and criteria

The JSON metadata defines the badge's attributes, such as its name, description, image, and criteria. It helps visually represent the badge and provides context, like the number of events engaged in or the date issued.

Here's the JSON structure formatted for docs.

{
  "sip": 16,
  "name": "Community Engagement #",
  "description": "",
  "image": "ipfs://ipfs/<image_hash>",
  "attributes": [
    {
      "trait_type": "user_id",
      "value": ""
    },
    {
      "trait_type": "engagement_type",
      "value": "<post, comment, share>"
    },
    {
      "trait_type": "engagement_timestamp",
      "value": ""
    },
    {
      "trait_type": "engagement_value",
      "value": "<likes, replies>"
    }
  ]
}

Feel free to replace the placeholders (like <image_hash>, <post, comment, share>, and <likes, replies>) with the actual data you plan to use!

Last updated