{
  "name": "chain-health",
  "description": "Latest chain-health summary: Healthy/Degraded status with thresholds, block-gap statistics for the last 100/1,000/10,000 blocks, last hour and last 24 h.",
  "source": "XDC JSON-RPC eth_getBlockByNumber (every block, batches of 250)",
  "sourceUrl": "https://docs.xdc.network/api/",
  "asOf": "2026-11-28T14:31:12.380Z",
  "stale": false,
  "license": "Free to reuse with attribution to \"XDC Insights (independent, unaffiliated)\". Underlying data belongs to its original sources; check their terms. Provided as-is, not financial advice.",
  "data": {
    "source": "XDC JSON-RPC eth_getBlockByNumber (every block, batches of 250)",
    "sourceUrl": "https://docs.xdc.network/api/",
    "endpoint": "https://rpc.xinfin.network",
    "status": "Healthy",
    "reasons": [],
    "thresholds": {
      "windowSeconds": 3600,
      "nominalGapSec": 2,
      "maxPctBlocksNot2s": 5,
      "maxGapSec": 120,
      "maxHeadAgeSec": 120,
      "rule": "Degraded if, in the last hour of blocks, more than 5% of blocks are not exactly 2 s after their parent, or any gap is 120 s or longer, or the newest block is more than 120 s old when we fetched it. Otherwise Healthy.",
      "baselineNote": "Why these numbers: our first scan (2026-10-01) found that even before the 16:22 UTC degradation, hours had roughly 0.6-1.8% of blocks not 2 s apart, including a few gaps of about 60 s per hour (maxGap 60-61 s). Thresholds sit above that baseline so a normal hour reads Healthy. They are our own judgement, not an official standard."
    },
    "headBlock": 109827012,
    "headTimestamp": "2026-11-28T14:30:33.000Z",
    "headAgeSecAtFetch": 39,
    "last100": {
      "blocks": 100,
      "gapsMeasured": 100,
      "medianGapSec": 2,
      "p95GapSec": 2,
      "maxGapSec": 61,
      "blocksNot2s": 5,
      "pctBlocksNot2s": 5,
      "gapsGE10s": 4,
      "gapsGE30s": 4
    },
    "last1000": {
      "blocks": 1000,
      "gapsMeasured": 1000,
      "medianGapSec": 2,
      "p95GapSec": 2,
      "maxGapSec": 61,
      "blocksNot2s": 19,
      "pctBlocksNot2s": 1.9,
      "gapsGE10s": 11,
      "gapsGE30s": 11
    },
    "last10000": {
      "blocks": 10000,
      "gapsMeasured": 10000,
      "medianGapSec": 2,
      "p95GapSec": 2,
      "maxGapSec": 121,
      "blocksNot2s": 285,
      "pctBlocksNot2s": 2.85,
      "gapsGE10s": 182,
      "gapsGE30s": 163
    },
    "lastHour": {
      "blocks": 1347,
      "gapsMeasured": 1347,
      "medianGapSec": 2,
      "p95GapSec": 2,
      "maxGapSec": 61,
      "blocksNot2s": 27,
      "pctBlocksNot2s": 2,
      "gapsGE10s": 16,
      "gapsGE30s": 15
    },
    "last24h": {
      "note": "Sum of the hourly buckets whose hour start is within 24 h of the newest block's hour (about 23-24 h; the newest bucket is partial). Coverage is only as long as our scan history.",
      "hourBuckets": 24,
      "blocks": 31281,
      "blocksNot2s": 625,
      "pctBlocksNot2s": 2,
      "longestGapSec": 121
    },
    "scan": {
      "mode": "resume",
      "fromBlock": 109794307,
      "toBlock": 109827012,
      "blocksScanned": 32706,
      "skipped": null
    },
    "method": "Gap = block.timestamp minus parent timestamp, in whole seconds (the chain stores integer seconds). Not-2s means gap != 2. Producer = block.miner field.",
    "fetchedAt": "2026-11-28T14:31:12.380Z",
    "stale": false,
    "error": null
  }
}
