{
  "openapi": "3.1.0",
  "info": {
    "title": "Sovereign Explorer API",
    "version": "1.0.0",
    "description": "Read-only, archive-backed Sovereign chain data. Versioned routes use /api/v1/{network}; legacy /api/{network} routes remain compatible. Anonymous reads allow limit <= 50, offset <= 500, block ranges <= 100000 heights, and time ranges <= 366 days. GraphQL and requests beyond that envelope require a paid API key; paid REST limits are capped at 200. Amounts are decimal grain strings (100000000 grains = 1 XUS); timestamps are Unix milliseconds. Null means unavailable. Check sync.ready and historyComplete before relying on data. All API operations are read-only.",
    "x-api-tiers": {
      "anonymous": {
        "maximumLimit": 50,
        "maximumOffset": 500
      },
      "pro": {
        "maximumLimit": 200,
        "maximumOffset": 1000000000,
        "authentication": [
          "X-API-Key",
          "Bearer"
        ]
      },
      "enterprise": {
        "maximumLimit": 200,
        "maximumOffset": 1000000000,
        "authentication": [
          "X-API-Key",
          "Bearer"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "/",
      "description": "This explorer deployment"
    }
  ],
  "components": {
    "securitySchemes": {
      "paidApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      },
      "paidBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "parameters": {
      "network": {
        "name": "network",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "enum": [
            "mainnet",
            "testnet"
          ]
        }
      },
      "limit": {
        "name": "limit",
        "in": "query",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 200,
          "default": 50
        },
        "description": "Values above the anonymous limit require a paid API key."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "requestId"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "requestId": {
                "type": "string",
                "format": "uuid"
              },
              "paidAccessRequired": {
                "type": "boolean"
              },
              "details": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "TransactionPage": {
        "type": "object",
        "required": [
          "items",
          "historyComplete"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionSummary"
            }
          },
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Opaque exclusive cursor; pass unchanged with the same filters. Null terminates pagination."
          },
          "historyComplete": {
            "type": "boolean",
            "description": "True only when the archive covers genesis through the observed node head. False means older matching activity may be missing."
          }
        }
      },
      "CatalogPage": {
        "type": "object",
        "required": [
          "kind",
          "items",
          "hasMore"
        ],
        "properties": {
          "kind": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "offset": {
            "type": "integer"
          },
          "limit": {
            "type": "integer"
          },
          "hasMore": {
            "type": "boolean"
          }
        }
      },
      "TransactionSummary": {
        "type": "object",
        "required": [
          "id",
          "blockHeight"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^0x[0-9a-fA-F]{64}$"
          },
          "index": {
            "type": "integer",
            "minimum": 0
          },
          "signer": {
            "type": [
              "string",
              "null"
            ]
          },
          "action": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "actionType": {
            "type": [
              "string",
              "null"
            ]
          },
          "executionStatus": {
            "type": [
              "string",
              "null"
            ]
          },
          "blockHeight": {
            "type": "integer",
            "minimum": 0
          },
          "blockHash": {
            "type": "string"
          },
          "timestampMs": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Unix milliseconds"
          },
          "sizeBytes": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "Network": {
        "type": "object",
        "required": [
          "name",
          "live",
          "ready",
          "phase",
          "archive"
        ],
        "properties": {
          "name": {
            "type": "string",
            "enum": [
              "mainnet",
              "testnet"
            ]
          },
          "live": {
            "type": "boolean",
            "description": "Relay configured; does not imply readiness."
          },
          "ready": {
            "type": "boolean"
          },
          "phase": {
            "type": "string"
          },
          "archive": {
            "type": "object",
            "additionalProperties": true
          }
        }
      }
    },
    "responses": {
      "ValidationError": {
        "description": "A parameter is malformed or outside the hard service bounds.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "The supplied API key is invalid, inactive, expired, or conflicts with another credential.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "PaymentRequired": {
        "description": "The request is outside the anonymous envelope and requires a paid API key.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "RateLimited": {
        "description": "The IP or paid-key quota is exhausted.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unavailable": {
        "description": "Network or upstream unavailable. A 503 may include Retry-After. Retry with bounded backoff.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  },
  "paths": {
    "/api/v1/{network}/status": {
      "get": {
        "summary": "Explorer and chain status",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          }
        ],
        "responses": {
          "200": {
            "description": "Current status",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getStatus",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/blocks": {
      "get": {
        "summary": "Newest-first block page",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "name": "before",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0
            },
            "description": "Inclusive height; next page starts at last returned height minus one. Stop at genesis."
          }
        ],
        "responses": {
          "200": {
            "description": "Block summaries",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getBlocks",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/block/{reference}": {
      "get": {
        "summary": "Block by height or hash",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          },
          {
            "name": "reference",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Normalized block",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Not found"
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getBlockReference",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/transactions": {
      "get": {
        "summary": "Cursor-paginated transaction archive",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "action",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "success",
                "failed"
              ]
            }
          },
          {
            "name": "account",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "minHeight",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "maxHeight",
            "in": "query",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "fromMs",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0
            },
            "description": "Unix milliseconds"
          },
          {
            "name": "toMs",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0
            },
            "description": "Unix milliseconds"
          }
        ],
        "responses": {
          "200": {
            "description": "Transaction page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionPage"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getTransactions",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/tx/{id}": {
      "get": {
        "summary": "Transaction and execution receipt",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Transaction detail",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Not mined or unknown"
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getTxId",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/account/{id}": {
      "get": {
        "summary": "Account state, holdings, and paginated activity",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Account detail",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getAccountId",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/catalog": {
      "get": {
        "summary": "Token, NFT, contract, or HTLC catalog",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          },
          {
            "name": "kind",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "token",
                "nft",
                "contract",
                "htlc"
              ]
            }
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Catalog page",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogPage"
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getCatalog",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/object/{kind}/{id}": {
      "get": {
        "summary": "Chain-object state and archived activity",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          },
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Object detail",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Not found"
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getObjectKindId",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/proof": {
      "get": {
        "summary": "Relay, consensus, cryptography, privacy, and archive evidence",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          }
        ],
        "responses": {
          "200": {
            "description": "Explorer proof bundle",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getProof",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/networks": {
      "get": {
        "summary": "Configured networks and archive readiness",
        "parameters": [],
        "responses": {
          "200": {
            "description": "JSON response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Network"
                  }
                }
              }
            }
          }
        },
        "operationId": "getNetworks"
      }
    },
    "/healthz": {
      "get": {
        "summary": "Service, network, or complete-archive readiness",
        "parameters": [
          {
            "name": "network",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "mainnet",
                "testnet"
              ]
            }
          },
          {
            "name": "archive",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON response"
          },
          "503": {
            "description": "Requested readiness condition is not satisfied."
          }
        },
        "operationId": "getHealthz"
      }
    },
    "/api/v1/{network}/txs": {
      "get": {
        "summary": "Recent retained transaction summaries",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          },
          {
            "$ref": "#/components/parameters/limit"
          }
        ],
        "responses": {
          "200": {
            "description": "JSON response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TransactionSummary"
                  }
                }
              }
            },
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getTxs",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/search": {
      "get": {
        "summary": "Classify or resolve a block, transaction, account, or name",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          },
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string",
              "maxLength": 256
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON response",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getSearch",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/capabilities": {
      "get": {
        "summary": "Optional relay proof capabilities",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          }
        ],
        "responses": {
          "200": {
            "description": "JSON response",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getCapabilities",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/inclusion-proof/{id}": {
      "get": {
        "summary": "Relay-supplied Merkle paths and block header roots",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^0x[0-9a-fA-F]{64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON response",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getInclusionProofId",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/names": {
      "get": {
        "summary": "Live Sovereign Name Service registry",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          },
          {
            "$ref": "#/components/parameters/limit"
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON response",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getNames",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/name/{id}": {
      "get": {
        "summary": "SNS registration record; null when absent",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON response",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getNameId",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/supply": {
      "get": {
        "summary": "Live or cached chain supply",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          }
        ],
        "responses": {
          "200": {
            "description": "JSON response",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getSupply",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/observed-miners": {
      "get": {
        "summary": "Observed mining accounts and explicit coverage window",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          }
        ],
        "responses": {
          "200": {
            "description": "JSON response",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getObservedMiners",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/miners": {
      "get": {
        "summary": "Node-reported miner registry",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          }
        ],
        "responses": {
          "200": {
            "description": "JSON response",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getMiners",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/validators": {
      "get": {
        "summary": "Legacy alias for observed mining accounts",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          }
        ],
        "responses": {
          "200": {
            "description": "JSON response",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getValidators",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/deployments": {
      "get": {
        "summary": "Node-reported consensus deployments and measured signaling",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          }
        ],
        "responses": {
          "200": {
            "description": "JSON response",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getDeployments",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/api/v1/{network}/analytics": {
      "get": {
        "summary": "Chain statistics and sampled supply series",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          }
        ],
        "responses": {
          "200": {
            "description": "JSON response",
            "headers": {
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-API-Tier": {
                "schema": {
                  "type": "string",
                  "enum": [
                    "anonymous",
                    "pro",
                    "enterprise"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "502": {
            "$ref": "#/components/responses/Unavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          }
        },
        "operationId": "getAnalytics",
        "security": [
          {},
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ]
      }
    },
    "/graphql/{network}": {
      "post": {
        "operationId": "queryGraphql",
        "summary": "Bounded read-only GraphQL subset (paid key required)",
        "parameters": [
          {
            "$ref": "#/components/parameters/network"
          }
        ],
        "security": [
          {
            "paidApiKey": []
          },
          {
            "paidBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "query"
                ],
                "properties": {
                  "query": {
                    "type": "string"
                  }
                }
              }
            },
            "text/plain": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "GraphQL data/errors and extensions.requestId"
          },
          "400": {
            "$ref": "#/components/responses/ValidationError"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        }
      }
    }
  },
  "externalDocs": {
    "url": "https://sovxus.org/llms.txt",
    "description": "Agent integration guide and data semantics"
  }
}
