{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/waodao/main/json-schema/waodao-token-response-schema.json",
  "title": "TokenResponse",
  "x-generated": "2026-10-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/waodao-artchain-api-openapi.yml#/components/schemas/TokenResponse",
  "type": "object",
  "required": [
    "project",
    "schema",
    "schema_url",
    "day",
    "date",
    "timestamp",
    "name",
    "description",
    "image",
    "external_url",
    "real_artwork",
    "bonus_tokens",
    "links",
    "attributes",
    "waodao",
    "market",
    "news",
    "trends",
    "source"
  ],
  "properties": {
    "project": {
      "type": "string"
    },
    "schema": {
      "type": "string"
    },
    "schema_url": {
      "type": "string",
      "format": "uri"
    },
    "day": {
      "type": "integer",
      "minimum": 1
    },
    "date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "timestamp": {
      "type": [
        "integer",
        "null"
      ]
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "image": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "external_url": {
      "type": "string",
      "format": "uri"
    },
    "real_artwork": {
      "type": "boolean"
    },
    "bonus_tokens": {
      "type": [
        "integer",
        "null"
      ]
    },
    "links": {
      "type": "object",
      "additionalProperties": {
        "type": [
          "string",
          "null"
        ],
        "format": "uri"
      }
    },
    "attributes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Attribute"
      }
    },
    "waodao": {
      "type": "object",
      "properties": {
        "schema": {
          "type": "string"
        },
        "schema_url": {
          "type": "string",
          "format": "uri"
        },
        "version": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "day": {
          "type": "integer"
        },
        "links": {
          "type": "object",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          }
        },
        "hashes": {
          "type": "object",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "additionalProperties": true
    },
    "market": {
      "type": "object",
      "properties": {
        "chain": {
          "type": "string"
        },
        "chain_id": {
          "type": "integer"
        },
        "contract": {
          "type": "string"
        },
        "token_id": {
          "type": "string"
        },
        "sale_status": {
          "type": "string"
        },
        "sale_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "winner_bid_eth": {
          "type": [
            "string",
            "null"
          ]
        },
        "collector_address": {
          "type": [
            "string",
            "null"
          ]
        },
        "sale_transaction_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "drop_transaction_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "contract_token_url": {
          "type": "string",
          "format": "uri"
        },
        "marketplace": {
          "type": "string"
        },
        "collection_url": {
          "type": "string",
          "format": "uri"
        },
        "marketplace_url": {
          "type": "string",
          "format": "uri"
        }
      },
      "additionalProperties": true
    },
    "news": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NewsItem"
      }
    },
    "trends": {
      "type": "object",
      "additionalProperties": {
        "type": [
          "string",
          "null"
        ]
      }
    },
    "source": {
      "type": "object",
      "properties": {
        "raw_site_data_url": {
          "type": "string",
          "format": "uri"
        },
        "agent_api_url": {
          "type": "string",
          "format": "uri"
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Attribute": {
      "type": "object",
      "required": [
        "trait_type",
        "value"
      ],
      "properties": {
        "display_type": {
          "type": "string"
        },
        "trait_type": {
          "type": "string"
        },
        "value": {
          "anyOf": [
            {
              "type": [
                "string",
                "null"
              ]
            },
            {
              "type": "number"
            },
            {
              "type": "integer"
            },
            {
              "type": "boolean"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "NewsItem": {
      "type": "object",
      "required": [
        "region",
        "key",
        "text",
        "url"
      ],
      "properties": {
        "region": {
          "type": "string"
        },
        "key": {
          "type": "string"
        },
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Absolute source URL when available; an empty string means no source URL was supplied."
        }
      },
      "additionalProperties": false
    }
  }
}