{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dogechain-com/json-schema/dogechain-com-block-schema.json",
  "title": "Block",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dogechain-com-openapi.json#/components/schemas/Block",
  "properties": {
    "bits": {
      "type": "string"
    },
    "confirmations": {
      "type": "integer"
    },
    "difficulty": {
      "type": "string"
    },
    "fees": {
      "$ref": "#/$defs/Amount"
    },
    "hash": {
      "type": "string"
    },
    "height": {
      "type": "integer"
    },
    "is_orphan": {
      "type": "boolean"
    },
    "merkleroot": {
      "type": "string"
    },
    "next_block_hash": {
      "description": "Null for the newest block.",
      "type": [
        "string",
        "null"
      ]
    },
    "nonce": {
      "type": "integer"
    },
    "num_txs": {
      "type": "integer"
    },
    "previous_block_hash": {
      "description": "Null for the genesis block.",
      "type": [
        "string",
        "null"
      ]
    },
    "price": {
      "$ref": "#/$defs/Price"
    },
    "reward": {
      "$ref": "#/$defs/Amount"
    },
    "size": {
      "type": "integer"
    },
    "time": {
      "type": "integer"
    },
    "txs": {
      "description": "Transaction ids.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "value_out": {
      "$ref": "#/$defs/Amount"
    },
    "version": {
      "type": "integer"
    },
    "weight": {
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "required": [
    "height",
    "hash",
    "time",
    "confirmations",
    "is_orphan",
    "previous_block_hash",
    "next_block_hash",
    "num_txs",
    "txs",
    "reward",
    "fees",
    "value_out",
    "size",
    "weight",
    "difficulty",
    "bits",
    "nonce",
    "merkleroot",
    "version",
    "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"
      ]
    }
  }
}