{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dogechain-com/json-schema/dogechain-com-block-summary-schema.json",
  "title": "BlockSummary",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dogechain-com-blocks-api-openapi.yml#/components/schemas/BlockSummary",
  "properties": {
    "difficulty": {
      "type": "string"
    },
    "height": {
      "type": "integer"
    },
    "miner": {
      "type": [
        "string",
        "null"
      ]
    },
    "num_txs": {
      "type": "integer"
    },
    "price": {
      "$ref": "#/$defs/Price"
    },
    "reward_and_fees": {
      "$ref": "#/$defs/Amount"
    },
    "size": {
      "type": "integer"
    },
    "time": {
      "description": "Unix seconds.",
      "type": "integer"
    },
    "version": {
      "type": "integer"
    },
    "weight": {
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "required": [
    "height",
    "time",
    "num_txs",
    "size",
    "weight",
    "version",
    "miner",
    "difficulty",
    "reward_and_fees",
    "price"
  ],
  "type": "object",
  "$defs": {
    "Amount": {
      "description": "DOGE with 8 decimals, as a string.",
      "pattern": "^-?[0-9]+\\.[0-9]{8}$",
      "type": "string"
    },
    "Price": {
      "description": "The DOGE price when the block or transaction was mined; null when unknown.",
      "properties": {
        "currency": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "required": [
        "value",
        "currency"
      ],
      "type": [
        "object",
        "null"
      ]
    }
  }
}