{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fiatdock-com/json-schema/fiatdock-com-token-metadata-schema.json",
  "title": "TokenMetadata",
  "description": "Paid. ERC-20 name/symbol/decimals/total supply on Base.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fiatdock-com-chain-api-openapi.yml#/components/schemas/TokenMetadata",
  "type": "object",
  "properties": {
    "network": {
      "type": "string",
      "description": "Chain read (always base)"
    },
    "contract": {
      "type": "string",
      "description": "The ERC-20 contract address queried"
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Token name (null if the contract omits name())"
    },
    "symbol": {
      "type": [
        "string",
        "null"
      ],
      "description": "Token symbol (null if the contract omits symbol())"
    },
    "decimals": {
      "type": "number",
      "description": "Token decimals"
    },
    "totalSupplyAtomic": {
      "type": [
        "string",
        "null"
      ],
      "description": "Total supply in atomic units (string; null if unavailable)"
    },
    "totalSupply": {
      "type": [
        "string",
        "null"
      ],
      "description": "Total supply as a decimal string (null if unavailable)"
    },
    "asOf": {
      "type": "string",
      "description": "ISO 8601 read time"
    }
  },
  "required": [
    "network",
    "contract",
    "name",
    "symbol",
    "decimals",
    "totalSupplyAtomic",
    "totalSupply",
    "asOf"
  ]
}