{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asteroidxrpl-com/json-schema/asteroidxrpl-com-supply-state-schema.json",
  "title": "ASTEROID supply state",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asteroidxrpl-com-openapi.json#/components/schemas/supply-state",
  "type": "object",
  "required": [
    "tokenId",
    "outstanding",
    "escrowed",
    "totalSupply",
    "circulating",
    "circulatingSharePct",
    "intendedIssuance",
    "returnedToIssuer",
    "issuanceAnchor",
    "claimStatus",
    "methodology"
  ],
  "additionalProperties": false,
  "properties": {
    "tokenId": {
      "type": "string"
    },
    "outstanding": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^-?[0-9]+(\\.[0-9]+)?$",
      "description": "Exact decimal string. Never rounded for transport. Null means unreadable, not zero."
    },
    "escrowed": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^-?[0-9]+(\\.[0-9]+)?$",
      "description": "Exact decimal string. Never rounded for transport. Null means unreadable, not zero."
    },
    "totalSupply": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^-?[0-9]+(\\.[0-9]+)?$",
      "description": "Exact decimal string. Never rounded for transport. Null means unreadable, not zero."
    },
    "circulating": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^-?[0-9]+(\\.[0-9]+)?$",
      "description": "Exact decimal string. Never rounded for transport. Null means unreadable, not zero."
    },
    "circulatingSharePct": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^-?[0-9]+(\\.[0-9]+)?$",
      "description": "Exact decimal string. Never rounded for transport. Null means unreadable, not zero."
    },
    "intendedIssuance": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^-?[0-9]+(\\.[0-9]+)?$",
      "description": "Exact decimal string. Never rounded for transport. Null means unreadable, not zero."
    },
    "returnedToIssuer": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^-?[0-9]+(\\.[0-9]+)?$",
      "description": "Exact decimal string. Never rounded for transport. Null means unreadable, not zero."
    },
    "issuanceAnchor": {
      "type": "object",
      "required": [
        "hash",
        "ledgerIndex",
        "declaredValue",
        "declaredDestination",
        "revalidated",
        "observedValue",
        "observedDestination",
        "matchesDeclaration"
      ],
      "additionalProperties": false,
      "properties": {
        "hash": {
          "type": "string"
        },
        "ledgerIndex": {
          "type": "integer"
        },
        "declaredValue": {
          "type": "string"
        },
        "declaredDestination": {
          "type": "string"
        },
        "revalidated": {
          "type": "boolean"
        },
        "observedValue": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^-?[0-9]+(\\.[0-9]+)?$",
          "description": "Exact decimal string. Never rounded for transport. Null means unreadable, not zero."
        },
        "observedDestination": {
          "type": [
            "string",
            "null"
          ]
        },
        "matchesDeclaration": {
          "type": [
            "boolean",
            "null"
          ]
        }
      }
    },
    "claimStatus": {
      "type": "object",
      "required": [
        "outstanding",
        "escrowed",
        "totalSupply",
        "circulating",
        "intendedIssuance"
      ],
      "additionalProperties": false,
      "properties": {
        "outstanding": {
          "type": "string",
          "enum": [
            "ledger-verified",
            "owner-confirmed",
            "independently-sourced",
            "derived",
            "aspirational",
            "unresolved"
          ]
        },
        "escrowed": {
          "type": "string",
          "enum": [
            "ledger-verified",
            "owner-confirmed",
            "independently-sourced",
            "derived",
            "aspirational",
            "unresolved"
          ]
        },
        "totalSupply": {
          "type": "string",
          "enum": [
            "ledger-verified",
            "owner-confirmed",
            "independently-sourced",
            "derived",
            "aspirational",
            "unresolved"
          ]
        },
        "circulating": {
          "type": "string",
          "enum": [
            "ledger-verified",
            "owner-confirmed",
            "independently-sourced",
            "derived",
            "aspirational",
            "unresolved"
          ]
        },
        "intendedIssuance": {
          "type": "string",
          "enum": [
            "ledger-verified",
            "owner-confirmed",
            "independently-sourced",
            "derived",
            "aspirational",
            "unresolved"
          ]
        }
      }
    },
    "methodology": {
      "type": "string"
    }
  }
}