{
  "openapi": "3.1.0",
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "info": {
    "title": "Oxyon XL1 API",
    "version": "1",
    "summary": "Free, read-only XL1 data observed by Oxyon.",
    "description": "A read-only JSON API for XL1 (XYO Layer One) data that Oxyon has observed. No key, no account. CORS is open (*).\n\nProvenance: answers are observed data. Oxyon reads them from XYO's published block data and RPC; they carry no finality guarantee and are not verified evidence. For records you can verify, see https://oxyon.io/proof/center/.\n\nCompatibility: within v1, the fields in each schema, their types, the paths and the status codes are only ever added to. Error wording, key order and fields outside the schemas are not promised. A breaking change would ship as v2 beside v1.\n\nRate limits: none are enforced today. Please be reasonable: cache what you can and back off on 5xx. Limits may be introduced later and would be announced first.\n\nOxyon is independent; it is not XYO Network or XY Labs.",
    "contact": {
      "name": "Oxyon",
      "email": "support@oxyon.io",
      "url": "https://oxyon.io/docs/developers/api-v1/"
    }
  },
  "externalDocs": {
    "description": "Stable API v1 guide",
    "url": "https://oxyon.io/docs/developers/api-v1/"
  },
  "servers": [
    {
      "url": "https://oxyon.io"
    }
  ],
  "security": [],
  "tags": [
    {
      "name": "XL1 v1",
      "description": "Stable, versioned routes."
    }
  ],
  "paths": {
    "/api/xl1/v1/{net}/head": {
      "get": {
        "operationId": "getHead",
        "summary": "The latest block Oxyon has observed, and the network pace.",
        "tags": [
          "XL1 v1"
        ],
        "description": "Observed data, not verified evidence. Answers carry meta.apiVersion = 1 and meta.schema = \"oxyon.xl1.api.head.v1\". Published schema: https://oxyon.io/xl1/api/v1/head.schema.json",
        "parameters": [
          {
            "name": "net",
            "in": "path",
            "required": true,
            "description": "The XL1 network.",
            "schema": {
              "type": "string",
              "enum": [
                "mainnet",
                "sequence"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Answered.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Head"
                }
              }
            }
          },
          "400": {
            "description": "Malformed input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown network, not found (for example a hash outside the observed window), or a route outside v1.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An internal failure: { error: \"internal\", detail }, WITHOUT v1 meta. Retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "const": "internal"
                    },
                    "detail": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "An upstream source failed (for example XYO RPC). Never answered with a zero or empty value in its place. Retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/xl1/v1/{net}/block/{id}": {
      "get": {
        "operationId": "getBlock",
        "summary": "One block, by height or by hash.",
        "tags": [
          "XL1 v1"
        ],
        "description": "Observed data, not verified evidence. Answers carry meta.apiVersion = 1 and meta.schema = \"oxyon.xl1.api.block.v1\". Published schema: https://oxyon.io/xl1/api/v1/block.schema.json",
        "parameters": [
          {
            "name": "net",
            "in": "path",
            "required": true,
            "description": "The XL1 network.",
            "schema": {
              "type": "string",
              "enum": [
                "mainnet",
                "sequence"
              ]
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "A block height (digits) or a 64-character block hash. A hash is found only within the window of blocks Oxyon has observed.",
            "schema": {
              "type": "string",
              "pattern": "^([0-9]+|[0-9a-fA-F]{64})$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Answered.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Block"
                }
              }
            }
          },
          "400": {
            "description": "Malformed input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown network, not found (for example a hash outside the observed window), or a route outside v1.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An internal failure: { error: \"internal\", detail }, WITHOUT v1 meta. Retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "const": "internal"
                    },
                    "detail": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "An upstream source failed (for example XYO RPC). Never answered with a zero or empty value in its place. Retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/xl1/v1/{net}/tx/{hash}": {
      "get": {
        "operationId": "getTx",
        "summary": "One transaction, by hash.",
        "tags": [
          "XL1 v1"
        ],
        "description": "Observed data, not verified evidence. Answers carry meta.apiVersion = 1 and meta.schema = \"oxyon.xl1.api.tx.v1\". Published schema: https://oxyon.io/xl1/api/v1/tx.schema.json",
        "parameters": [
          {
            "name": "net",
            "in": "path",
            "required": true,
            "description": "The XL1 network.",
            "schema": {
              "type": "string",
              "enum": [
                "mainnet",
                "sequence"
              ]
            }
          },
          {
            "name": "hash",
            "in": "path",
            "required": true,
            "description": "A 64-character hexadecimal transaction hash.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-fA-F]{64}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Answered.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Tx"
                }
              }
            }
          },
          "400": {
            "description": "Malformed input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown network, not found (for example a hash outside the observed window), or a route outside v1.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An internal failure: { error: \"internal\", detail }, WITHOUT v1 meta. Retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "const": "internal"
                    },
                    "detail": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "An upstream source failed (for example XYO RPC). Never answered with a zero or empty value in its place. Retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/xl1/v1/{net}/address/{address}": {
      "get": {
        "operationId": "getAddress",
        "summary": "An address's balance and its newest transfers, one page at a time.",
        "tags": [
          "XL1 v1"
        ],
        "description": "Observed data, not verified evidence. Answers carry meta.apiVersion = 1 and meta.schema = \"oxyon.xl1.api.address.v1\". Published schema: https://oxyon.io/xl1/api/v1/address.schema.json",
        "parameters": [
          {
            "name": "net",
            "in": "path",
            "required": true,
            "description": "The XL1 network.",
            "schema": {
              "type": "string",
              "enum": [
                "mainnet",
                "sequence"
              ]
            }
          },
          {
            "name": "address",
            "in": "path",
            "required": true,
            "description": "A 40-character hexadecimal XL1 address (a leading 0x is accepted).",
            "schema": {
              "type": "string",
              "pattern": "^(0x)?[0-9a-fA-F]{40}$"
            }
          },
          {
            "name": "upto",
            "in": "query",
            "required": false,
            "description": "Page back: return transfers up to and including this block (use the previous answer's history.oldest). Inclusive, so de-duplicate rows by block + transfer hash. Page size is set by XYO and varies.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{1,12}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Answered.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Address"
                }
              }
            }
          },
          "400": {
            "description": "Malformed input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown network, not found (for example a hash outside the observed window), or a route outside v1.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An internal failure: { error: \"internal\", detail }, WITHOUT v1 meta. Retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "const": "internal"
                    },
                    "detail": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "An upstream source failed (for example XYO RPC). Never answered with a zero or empty value in its place. Retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/xl1/v1/{net}/producers": {
      "get": {
        "operationId": "getProducers",
        "summary": "Every producer Oxyon has observed, ranked by blocks landed in a window.",
        "tags": [
          "XL1 v1"
        ],
        "description": "Observed data, not verified evidence. Answers carry meta.apiVersion = 1 and meta.schema = \"oxyon.xl1.api.producers.v1\". Published schema: https://oxyon.io/xl1/api/v1/producers.schema.json",
        "parameters": [
          {
            "name": "net",
            "in": "path",
            "required": true,
            "description": "The XL1 network.",
            "schema": {
              "type": "string",
              "enum": [
                "mainnet",
                "sequence"
              ]
            }
          },
          {
            "name": "window",
            "in": "query",
            "required": false,
            "description": "The rolling window. Default 24h.",
            "schema": {
              "type": "string",
              "enum": [
                "10m",
                "1h",
                "6h",
                "24h",
                "7d",
                "all"
              ],
              "default": "24h"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Answered.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Producers"
                }
              }
            }
          },
          "400": {
            "description": "Malformed input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown network, not found (for example a hash outside the observed window), or a route outside v1.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An internal failure: { error: \"internal\", detail }, WITHOUT v1 meta. Retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "const": "internal"
                    },
                    "detail": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "An upstream source failed (for example XYO RPC). Never answered with a zero or empty value in its place. Retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/xl1/v1/{net}/producer/{address}": {
      "get": {
        "operationId": "getProducer",
        "summary": "One producer: its blocks and ranking.",
        "tags": [
          "XL1 v1"
        ],
        "description": "Observed data, not verified evidence. Answers carry meta.apiVersion = 1 and meta.schema = \"oxyon.xl1.api.producer.v1\". Published schema: https://oxyon.io/xl1/api/v1/producer.schema.json",
        "parameters": [
          {
            "name": "net",
            "in": "path",
            "required": true,
            "description": "The XL1 network.",
            "schema": {
              "type": "string",
              "enum": [
                "mainnet",
                "sequence"
              ]
            }
          },
          {
            "name": "address",
            "in": "path",
            "required": true,
            "description": "A 40-character hexadecimal XL1 address (a leading 0x is accepted).",
            "schema": {
              "type": "string",
              "pattern": "^(0x)?[0-9a-fA-F]{40}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Answered.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Producer"
                }
              }
            }
          },
          "400": {
            "description": "Malformed input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown network, not found (for example a hash outside the observed window), or a route outside v1.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An internal failure: { error: \"internal\", detail }, WITHOUT v1 meta. Retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "const": "internal"
                    },
                    "detail": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "An upstream source failed (for example XYO RPC). Never answered with a zero or empty value in its place. Retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/xl1/v1/{net}/journey/{n}": {
      "get": {
        "operationId": "getJourney",
        "summary": "One height's block journey: which candidates Oxyon's observers saw, and the block that was accepted.",
        "tags": [
          "XL1 v1"
        ],
        "description": "Observed data, not verified evidence. Answers carry meta.apiVersion = 1 and meta.schema = \"oxyon.xl1.api.journey.v1\". Published schema: https://oxyon.io/xl1/api/v1/journey.schema.json",
        "parameters": [
          {
            "name": "net",
            "in": "path",
            "required": true,
            "description": "The XL1 network.",
            "schema": {
              "type": "string",
              "enum": [
                "mainnet",
                "sequence"
              ]
            }
          },
          {
            "name": "n",
            "in": "path",
            "required": true,
            "description": "A block height.",
            "schema": {
              "type": "string",
              "pattern": "^[0-9]+$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Answered.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Journey"
                }
              }
            }
          },
          "400": {
            "description": "Malformed input.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unknown network, not found (for example a hash outside the observed window), or a route outside v1.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "An internal failure: { error: \"internal\", detail }, WITHOUT v1 meta. Retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "const": "internal"
                    },
                    "detail": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "An upstream source failed (for example XYO RPC). Never answered with a zero or empty value in its place. Retryable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "A human-readable message. Its wording is not part of the contract."
          },
          "meta": {
            "type": "object",
            "properties": {
              "apiVersion": {
                "const": 1
              },
              "schema": {
                "type": "string"
              }
            }
          },
          "v1Routes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Present on a 404 for a path outside v1."
          }
        }
      },
      "Head": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "https://oxyon.io/xl1/api/v1/head.schema.json",
        "title": "oxyon.xl1.api.head.v1",
        "description": "Stable v1 contract for GET /api/xl1/v1/{net}/head. Fields listed are promised; others may appear (additive changes only).",
        "type": "object",
        "required": [
          "meta",
          "net",
          "head",
          "blockTime",
          "producers",
          "pace"
        ],
        "properties": {
          "net": {
            "enum": [
              "sequence",
              "mainnet"
            ]
          },
          "head": {
            "type": "object",
            "required": [
              "n",
              "hash",
              "producer",
              "epoch",
              "txs"
            ],
            "properties": {
              "n": {
                "type": "integer",
                "minimum": 0
              },
              "hash": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "producer": {
                "type": "string",
                "pattern": "^[0-9a-f]{40}$"
              },
              "epoch": {
                "type": "integer",
                "minimum": 0
              },
              "txs": {
                "type": "integer",
                "minimum": 0
              }
            },
            "additionalProperties": true
          },
          "blockTime": {
            "type": "object",
            "required": [
              "meanMs",
              "medianMs",
              "sample"
            ],
            "properties": {
              "meanMs": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 0
              },
              "medianMs": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 0
              },
              "sample": {
                "type": "integer",
                "minimum": 0
              }
            },
            "additionalProperties": true
          },
          "producers": {
            "type": "object",
            "required": [
              "active10m",
              "active1h"
            ],
            "properties": {
              "active10m": {
                "type": "integer",
                "minimum": 0
              },
              "active1h": {
                "type": "integer",
                "minimum": 0
              }
            },
            "additionalProperties": true
          },
          "pace": {
            "type": "object",
            "required": [
              "last10m",
              "last1h"
            ],
            "properties": {
              "last10m": {
                "type": "integer",
                "minimum": 0
              },
              "last1h": {
                "type": "integer",
                "minimum": 0
              }
            },
            "additionalProperties": true
          },
          "meta": {
            "type": "object",
            "required": [
              "net",
              "source",
              "generatedAt",
              "apiVersion",
              "schema"
            ],
            "properties": {
              "net": {
                "enum": [
                  "sequence",
                  "mainnet"
                ]
              },
              "source": {
                "enum": [
                  "official",
                  "observed",
                  "derived",
                  "telemetry",
                  "rpc"
                ]
              },
              "generatedAt": {
                "type": "integer",
                "minimum": 0
              },
              "apiVersion": {
                "const": 1
              },
              "schema": {
                "const": "oxyon.xl1.api.head.v1"
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "Block": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "https://oxyon.io/xl1/api/v1/block.schema.json",
        "title": "oxyon.xl1.api.block.v1",
        "description": "Stable v1 contract for GET /api/xl1/v1/{net}/block. Fields listed are promised; others may appear (additive changes only).",
        "type": "object",
        "required": [
          "meta",
          "block",
          "raw"
        ],
        "properties": {
          "block": {
            "type": "object",
            "required": [
              "n",
              "hash",
              "prev",
              "producer",
              "epoch",
              "txs",
              "payloads",
              "transfers",
              "txHashes",
              "chain",
              "hasNext"
            ],
            "properties": {
              "n": {
                "type": "integer",
                "minimum": 0
              },
              "hash": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "prev": {
                "type": [
                  "string",
                  "null"
                ],
                "pattern": "^[0-9a-f]{64}$"
              },
              "producer": {
                "type": "string",
                "pattern": "^[0-9a-f]{40}$"
              },
              "epoch": {
                "type": "integer",
                "minimum": 0
              },
              "txs": {
                "type": "integer",
                "minimum": 0
              },
              "payloads": {
                "type": "integer",
                "minimum": 0
              },
              "transfers": {
                "type": "integer",
                "minimum": 0
              },
              "txHashes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{64}$"
                }
              },
              "chain": {
                "type": "string"
              },
              "hasNext": {
                "type": "boolean"
              }
            },
            "additionalProperties": true
          },
          "raw": {
            "type": "array"
          },
          "meta": {
            "type": "object",
            "required": [
              "net",
              "source",
              "generatedAt",
              "apiVersion",
              "schema"
            ],
            "properties": {
              "net": {
                "enum": [
                  "sequence",
                  "mainnet"
                ]
              },
              "source": {
                "enum": [
                  "official",
                  "observed",
                  "derived",
                  "telemetry",
                  "rpc"
                ]
              },
              "generatedAt": {
                "type": "integer",
                "minimum": 0
              },
              "apiVersion": {
                "const": 1
              },
              "schema": {
                "const": "oxyon.xl1.api.block.v1"
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "Tx": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "https://oxyon.io/xl1/api/v1/tx.schema.json",
        "title": "oxyon.xl1.api.tx.v1",
        "description": "Stable v1 contract for GET /api/xl1/v1/{net}/tx. Fields listed are promised; others may appear (additive changes only).",
        "type": "object",
        "required": [
          "meta",
          "tx",
          "raw"
        ],
        "properties": {
          "tx": {
            "type": "object",
            "required": [
              "hash",
              "n",
              "blockHash",
              "epoch",
              "producer",
              "from",
              "fees",
              "nbf",
              "exp",
              "chain",
              "payloads",
              "transfers"
            ],
            "properties": {
              "hash": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "n": {
                "type": "integer",
                "minimum": 0
              },
              "blockHash": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "epoch": {
                "type": "integer",
                "minimum": 0
              },
              "producer": {
                "type": "string",
                "pattern": "^[0-9a-f]{40}$"
              },
              "from": {
                "type": "string",
                "pattern": "^[0-9a-f]{40}$"
              },
              "fees": {
                "type": "object"
              },
              "nbf": {
                "type": "integer",
                "minimum": 0
              },
              "exp": {
                "type": "integer",
                "minimum": 0
              },
              "chain": {
                "type": "string"
              },
              "payloads": {
                "type": "array"
              },
              "transfers": {
                "type": "array"
              }
            },
            "additionalProperties": true
          },
          "raw": {
            "type": "object"
          },
          "meta": {
            "type": "object",
            "required": [
              "net",
              "source",
              "generatedAt",
              "apiVersion",
              "schema"
            ],
            "properties": {
              "net": {
                "enum": [
                  "sequence",
                  "mainnet"
                ]
              },
              "source": {
                "enum": [
                  "official",
                  "observed",
                  "derived",
                  "telemetry",
                  "rpc"
                ]
              },
              "generatedAt": {
                "type": "integer",
                "minimum": 0
              },
              "apiVersion": {
                "const": 1
              },
              "schema": {
                "const": "oxyon.xl1.api.tx.v1"
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "Address": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "https://oxyon.io/xl1/api/v1/address.schema.json",
        "title": "oxyon.xl1.api.address.v1",
        "description": "Stable v1 contract for GET /api/xl1/v1/{net}/address. Fields listed are promised; others may appear (additive changes only).",
        "type": "object",
        "required": [
          "meta",
          "address",
          "balance",
          "history"
        ],
        "properties": {
          "address": {
            "type": "string",
            "pattern": "^[0-9a-f]{40}$"
          },
          "balance": {
            "type": [
              "object",
              "null"
            ],
            "required": [
              "atto",
              "range"
            ],
            "properties": {
              "atto": {
                "type": "string",
                "pattern": "^[0-9]+$"
              },
              "head": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "range": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "additionalProperties": true
          },
          "history": {
            "type": "object",
            "required": [
              "items",
              "range",
              "oldest",
              "more"
            ],
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "block",
                    "epoch",
                    "tx",
                    "transfer",
                    "direction",
                    "kind",
                    "amount",
                    "counterparties"
                  ],
                  "properties": {
                    "block": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "epoch": {
                      "type": [
                        "integer",
                        "null"
                      ],
                      "minimum": 0
                    },
                    "tx": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[0-9a-f]{64}$"
                    },
                    "transfer": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "pattern": "^[0-9a-f]{64}$"
                    },
                    "direction": {
                      "enum": [
                        "in",
                        "out"
                      ]
                    },
                    "kind": {
                      "enum": [
                        "mint",
                        "transfer"
                      ]
                    },
                    "amount": {
                      "type": "string",
                      "pattern": "^[0-9]+$"
                    },
                    "counterparties": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "address",
                          "amount"
                        ],
                        "properties": {
                          "address": {
                            "type": "string",
                            "pattern": "^[0-9a-f]{40}$"
                          },
                          "amount": {
                            "type": "string",
                            "pattern": "^[0-9]+$"
                          }
                        },
                        "additionalProperties": true
                      }
                    }
                  },
                  "additionalProperties": true
                }
              },
              "range": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "oldest": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 0
              },
              "more": {
                "type": "boolean"
              }
            },
            "additionalProperties": true
          },
          "meta": {
            "type": "object",
            "required": [
              "net",
              "source",
              "generatedAt",
              "apiVersion",
              "schema"
            ],
            "properties": {
              "net": {
                "enum": [
                  "sequence",
                  "mainnet"
                ]
              },
              "source": {
                "enum": [
                  "official",
                  "observed",
                  "derived",
                  "telemetry",
                  "rpc"
                ]
              },
              "generatedAt": {
                "type": "integer",
                "minimum": 0
              },
              "apiVersion": {
                "const": 1
              },
              "schema": {
                "const": "oxyon.xl1.api.address.v1"
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "Producers": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "https://oxyon.io/xl1/api/v1/producers.schema.json",
        "title": "oxyon.xl1.api.producers.v1",
        "description": "Stable v1 contract for GET /api/xl1/v1/{net}/producers. Fields listed are promised; others may appear (additive changes only).",
        "type": "object",
        "required": [
          "meta",
          "window",
          "from",
          "to",
          "total",
          "rows"
        ],
        "properties": {
          "window": {
            "type": "string"
          },
          "from": {
            "type": "integer",
            "minimum": 0
          },
          "to": {
            "type": "integer",
            "minimum": 0
          },
          "total": {
            "type": "integer",
            "minimum": 0
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "rank",
                "producer",
                "blocks",
                "share"
              ],
              "properties": {
                "rank": {
                  "type": "integer",
                  "minimum": 0
                },
                "producer": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{40}$"
                },
                "blocks": {
                  "type": "integer",
                  "minimum": 0
                },
                "share": {
                  "type": "number"
                }
              },
              "additionalProperties": true
            }
          },
          "meta": {
            "type": "object",
            "required": [
              "net",
              "source",
              "generatedAt",
              "apiVersion",
              "schema"
            ],
            "properties": {
              "net": {
                "enum": [
                  "sequence",
                  "mainnet"
                ]
              },
              "source": {
                "enum": [
                  "official",
                  "observed",
                  "derived",
                  "telemetry",
                  "rpc"
                ]
              },
              "generatedAt": {
                "type": "integer",
                "minimum": 0
              },
              "apiVersion": {
                "const": 1
              },
              "schema": {
                "const": "oxyon.xl1.api.producers.v1"
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "Producer": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "https://oxyon.io/xl1/api/v1/producer.schema.json",
        "title": "oxyon.xl1.api.producer.v1",
        "description": "Stable v1 contract for GET /api/xl1/v1/{net}/producer. Fields listed are promised; others may appear (additive changes only).",
        "type": "object",
        "required": [
          "meta",
          "address",
          "isProducer",
          "windows",
          "observed",
          "recent",
          "sent"
        ],
        "properties": {
          "address": {
            "type": "string",
            "pattern": "^[0-9a-f]{40}$"
          },
          "isProducer": {
            "type": "boolean"
          },
          "windows": {
            "type": "object",
            "required": [
              "1h",
              "24h",
              "7d"
            ],
            "properties": {
              "1h": {
                "type": "object"
              },
              "24h": {
                "type": "object"
              },
              "7d": {
                "type": "object"
              }
            },
            "additionalProperties": true
          },
          "observed": {
            "type": "object",
            "required": [
              "blocks",
              "total"
            ],
            "properties": {
              "blocks": {
                "type": "integer",
                "minimum": 0
              },
              "total": {
                "type": "integer",
                "minimum": 0
              }
            },
            "additionalProperties": true
          },
          "recent": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "n",
                "epoch",
                "producer"
              ],
              "properties": {
                "n": {
                  "type": "integer",
                  "minimum": 0
                },
                "epoch": {
                  "type": "integer",
                  "minimum": 0
                },
                "producer": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{40}$"
                }
              },
              "additionalProperties": true
            }
          },
          "sent": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "n",
                "epoch",
                "producer"
              ],
              "properties": {
                "n": {
                  "type": "integer",
                  "minimum": 0
                },
                "epoch": {
                  "type": "integer",
                  "minimum": 0
                },
                "producer": {
                  "type": "string",
                  "pattern": "^[0-9a-f]{40}$"
                }
              },
              "additionalProperties": true
            }
          },
          "meta": {
            "type": "object",
            "required": [
              "net",
              "source",
              "generatedAt",
              "apiVersion",
              "schema"
            ],
            "properties": {
              "net": {
                "enum": [
                  "sequence",
                  "mainnet"
                ]
              },
              "source": {
                "enum": [
                  "official",
                  "observed",
                  "derived",
                  "telemetry",
                  "rpc"
                ]
              },
              "generatedAt": {
                "type": "integer",
                "minimum": 0
              },
              "apiVersion": {
                "const": 1
              },
              "schema": {
                "const": "oxyon.xl1.api.producer.v1"
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "Journey": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "$id": "https://oxyon.io/xl1/api/v1/journey.schema.json",
        "title": "oxyon.xl1.api.journey.v1",
        "description": "Stable v1 contract for GET /api/xl1/v1/{net}/journey. Fields listed are promised; others may appear (additive changes only).",
        "type": "object",
        "required": [
          "meta",
          "schema",
          "chainTruth",
          "attestation",
          "network",
          "observers",
          "candidates"
        ],
        "properties": {
          "schema": {
            "const": "oxyon.xl1.block-journey.v1"
          },
          "chainTruth": {
            "type": "object",
            "required": [
              "class",
              "height",
              "hash",
              "producer",
              "final"
            ],
            "properties": {
              "class": {
                "type": "string"
              },
              "height": {
                "type": "integer",
                "minimum": 0
              },
              "hash": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "producer": {
                "type": "string",
                "pattern": "^[0-9a-f]{40}$"
              },
              "final": {
                "type": "boolean"
              }
            },
            "additionalProperties": true
          },
          "attestation": {
            "type": "object",
            "required": [
              "signed"
            ],
            "properties": {
              "signed": {
                "type": "boolean"
              }
            },
            "additionalProperties": true
          },
          "network": {
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string"
              }
            },
            "additionalProperties": true
          },
          "observers": {
            "type": "array"
          },
          "candidates": {
            "type": "array"
          },
          "meta": {
            "type": "object",
            "required": [
              "net",
              "source",
              "generatedAt",
              "apiVersion",
              "schema"
            ],
            "properties": {
              "net": {
                "enum": [
                  "sequence",
                  "mainnet"
                ]
              },
              "source": {
                "enum": [
                  "official",
                  "observed",
                  "derived",
                  "telemetry",
                  "rpc"
                ]
              },
              "generatedAt": {
                "type": "integer",
                "minimum": 0
              },
              "apiVersion": {
                "const": 1
              },
              "schema": {
                "const": "oxyon.xl1.api.journey.v1"
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      }
    }
  }
}
