{
  "$id": "https://github.com/iotaledger/tips/main/tips/TIP-0030/irc30.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "A JSON schema for validating IRC30 compliant native token metadata",
  "properties": {
    "decimals": {
      "description": "Number of decimals the token uses (divide the token amount by decimals to get its user representation)",
      "minimum": 0,
      "type": "integer"
    },
    "description": {
      "description": "The human-readable description of the token",
      "type": "string"
    },
    "logo": {
      "description": "The logo of the token encoded as a byte string",
      "type": "string"
    },
    "logoUrl": {
      "description": "URL pointing to an image resource of the token logo",
      "type": "string"
    },
    "name": {
      "description": "The human-readable name of the native token",
      "type": "string"
    },
    "standard": {
      "description": "The IRC standard of the token metadata",
      "pattern": "^IRC30$",
      "type": "string"
    },
    "symbol": {
      "description": "The symbol/ticker of the token",
      "type": "string"
    },
    "url": {
      "description": "URL pointing to more resources about the token",
      "type": "string"
    }
  },
  "required": [
    "standard",
    "name",
    "symbol",
    "decimals"
  ],
  "title": "IRC30 Native Token Metadata Schema",
  "type": "object"
}