{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/monerometrics-net/json-schema/monerometrics-net-block-detail-response-schema.json",
  "title": "BlockDetailResponse",
  "description": "Full on-chain detail for one block, read live from the node.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/monerometrics-net-openapi.json#/components/schemas/BlockDetailResponse",
  "properties": {
    "height": {
      "type": "integer",
      "title": "Height"
    },
    "hash": {
      "type": "string",
      "title": "Hash"
    },
    "prev_hash": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Prev Hash"
    },
    "timestamp_unix": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Timestamp Unix"
    },
    "difficulty": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Difficulty"
    },
    "reward_xmr": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reward Xmr"
    },
    "size_bytes": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Size Bytes"
    },
    "weight": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Weight"
    },
    "long_term_weight": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Long Term Weight"
    },
    "coinbase_hash": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Coinbase Hash"
    },
    "coinbase_outputs": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Coinbase Outputs"
    },
    "tx_count": {
      "type": "integer",
      "title": "Tx Count",
      "default": 0
    },
    "tx_hashes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Tx Hashes",
      "default": []
    },
    "merge_mining": {
      "items": {
        "$ref": "#/$defs/MergeMinedChain"
      },
      "type": "array",
      "title": "Merge Mining",
      "default": []
    },
    "miner_pool": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Miner Pool"
    },
    "pool_source": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pool Source"
    },
    "proof_address": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Proof Address"
    },
    "proof_viewkey": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Proof Viewkey"
    }
  },
  "type": "object",
  "required": [
    "height",
    "hash"
  ],
  "$defs": {
    "MergeMinedChain": {
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        },
        "height": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Height"
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        }
      },
      "type": "object",
      "title": "MergeMinedChain",
      "description": "An auxiliary chain merge-mined into this Monero block."
    }
  }
}