{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blockvectra/json-schema/blockvectra-chain-list-schema.json",
  "title": "ChainList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blockvectra-chains-api-openapi.yml#/components/schemas/ChainList",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "chains"
  ],
  "properties": {
    "chains": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Chain"
      }
    }
  },
  "$defs": {
    "BlockNumber": {
      "type": "integer",
      "minimum": 0
    },
    "Chain": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "chain",
        "chain_id",
        "min_confirmations",
        "default_confirmations",
        "max_confirmations",
        "replayable_from_block",
        "halted"
      ],
      "properties": {
        "chain": {
          "$ref": "#/$defs/ChainName"
        },
        "chain_id": {
          "type": "integer",
          "minimum": 1
        },
        "min_confirmations": {
          "type": "integer",
          "minimum": 1,
          "description": "Smallest N a subscription may choose on this chain (1)."
        },
        "default_confirmations": {
          "type": "integer",
          "minimum": 1,
          "description": "N used when a request omits confirmations for this chain."
        },
        "max_confirmations": {
          "type": "integer",
          "minimum": 1,
          "description": "Largest N a subscription may choose on this chain."
        },
        "replayable_from_block": {
          "$ref": "#/$defs/BlockNumber"
        },
        "halted": {
          "type": "boolean",
          "description": "true while the chain is stopped after a chain reorg; subscriptions stay online; once operators restore the chain, each affected stream re-delivers canonical events from the fork point."
        }
      }
    },
    "ChainName": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9]*(_[a-z0-9]+)+$",
      "description": "lower(chain_slug), ES-030 rule 10."
    }
  }
}