# Consensus liveness

[Open validators in TraceFast →](https://tracefast.xyz/analytics/validators)

The newest head and finalized slot TraceFast saw and when, the distance between them, the newest published slot, missed slots and reorgs over the last 24 hours (the reorgs and the newest missed slots as rows), and `observation24h` — how completely the head was seen over the window. A reorg count is a statement about what was SEEN: read it next to `observation24h` and `ages.headSeconds`. A missed slot names its assigned validator only when `dutyStatus` is `recorded`. The facts are refreshed every minute; `ages` is computed for each request.

```
GET https://tracefast.xyz/api/v1/chains/1/consensus/health
```

The method takes no parameters besides the chain.

**Access** — an [API key](/api/authentication) on the **Intelligence** plan or higher ([plans](/api/authentication#plans)), or no key at all: pay per call with [x402](/api/x402) at the same path on `https://mpp.tracefast.xyz/api/v1`, at the price its `402` states. As a tool for AI agents: `get_consensus_health` on the [MCP server](/api/mcp-server). **Stable** — see [stability](/api/conventions#stability).

`chains/1` is a literal: other chain ids answer `404 chain_not_supported`. An unknown query parameter is refused rather than ignored.

## Response

`200 application/json`. Lists in the example are cut to two entries.

```json
{
  "data": {
    "chainId": 1,
    "head": {
      "slot": 15674522,
      "observedAt": 1794918289
    },
    "finalized": {
      "slot": 15674432,
      "observedAt": 1794917974
    },
    "finalizationLagSlots": 90,
    "publishedSlot": {
      "slot": 15674432,
      "epoch": 489826,
      "executionBlockNumber": 26434658,
      "slotTime": 1794917207
    },
    "missedSlots24h": {
      "slots": 7110,
      "missed": 26,
      "missedRatio": 0.0036568213783403658
    },
    "reorgs24h": {
      "count": 5,
      "lastObservedAt": 1794899940,
      "reorgs": [
        {
          "slot": 15672993,
          "epoch": 489781,
          "depth": 1,
          "observedAt": 1794899940,
          "slotTime": 1794899939,
          "newHeadRoot": "0x2151a343915021198327f4247eb11745d18891bf52647c8cb7ee0e0316e05eb2",
          "oldHeadRoot": "0xf3a0538cd656aed711cd060a673fe605e5e643b19a4ac448b99cf6677945a052",
          "executionBlockNumber": 26433225
        },
        {
          "slot": 15671915,
          "epoch": 489747,
          "depth": 1,
          "observedAt": 1794887005,
          "slotTime": 1794887003,
          "newHeadRoot": "0x8ea982b8e19edd67f5ac0cf7386576e2a3b9fd248e74d372a4a2a624e795c257",
          "oldHeadRoot": "0xe9af7b7b8e0f4f5d6fbeabcf4adee4e507d5ad04d5c8cd07d04872a91138f39c",
          "executionBlockNumber": 26432151
        }
      ]
    },
    "observation24h": {
      "windowSlots": 7200,
      "fromSlot": 15667322,
      "headEvents": 7171,
      "firstObservedAt": 1794831900,
      "lastObservedAt": 1794918289,
      "largestGapSeconds": 121
    },
    "missedSlots": [
      {
        "slot": 15674313,
        "epoch": 489822,
        "slotTime": 1794915779,
        "dutyStatus": "recorded",
        "validatorIndex": 5144
      },
      {
        "slot": 15673818,
        "epoch": 489806,
        "slotTime": 1794909839,
        "dutyStatus": "recorded",
        "validatorIndex": 92236
      }
    ],
    "ages": {
      "headSeconds": 40,
      "finalitySeconds": 355,
      "publishedSlotSeconds": 1122
    }
  },
  "meta": {
    "chain": "ethereum",
    "timestamp": 1794918329609,
    "cached": true,
    "docs": "https://docs.tracefast.xyz/api/consensus-health"
  }
}
```

### `data`

| Field | Meaning |
|---|---|
| `ages` | Ages of the card's moments, computed for this request. |
| `chainId` | Chain id the facts are about. `1` is Ethereum mainnet. |
| `finalizationLagSlots` | `head.slot - finalized.slot`. |
| `finalized` | The newest finalized slot TraceFast saw. |
| `head` | The newest head TraceFast saw. |
| `missedSlots` | The newest missed slots of the window, newest first (at most 50). |
| `missedSlots24h` | Missed slots over the last 24 hours of published slots. |
| `observation24h` | Read every count of the card next to this. |
| `publishedSlot` | The newest published slot. The 24-hour missed-slot figures are counted over the published slots. |
| `reorgs24h` | Reorgs observed over the last 24 hours. |

### `data.ages`

| Field | Meaning |
|---|---|
| `finalitySeconds` | Since finality was last seen (normally about 13 minutes behind the head). |
| `headSeconds` | Since the head was seen. Minutes here mean the head is not being observed. |
| `publishedSlotSeconds` | Since the newest published slot. |

### `data.finalized`

| Field | Meaning |
|---|---|
| `observedAt` | When TraceFast saw it, unix seconds. |
| `slot` | The beacon slot. |

### `data.head`

The same fields as `data.finalized`.

### `data.missedSlots[]`

| Field | Meaning |
|---|---|
| `dutyStatus` | `recorded` (the assigned validator is known) or `not_recorded` (below slot 14 971 296, permanently). |
| `epoch` | Its epoch. |
| `slot` | The beacon slot. |
| `slotTime` | Wall-clock time of the slot, unix seconds. |
| `validatorIndex` | The validator that was assigned to propose it. Absent when `not_recorded`. |

### `data.missedSlots24h`

| Field | Meaning |
|---|---|
| `missed` | Published slots of the window in which no block was proposed. |
| `missedRatio` | `missed / slots`, from `0` to `1`. |
| `slots` | Published slots in the window. 7 200 when it is complete. |

### `data.observation24h`

| Field | Meaning |
|---|---|
| `firstObservedAt` | First head event seen in the window, unix seconds. Absent when none was seen. |
| `fromSlot` | The lowest slot of the window (exclusive). |
| `headEvents` | Head events seen in the window. A missed slot has none, so this is at most `windowSlots` minus the missed slots. Markedly fewer means TraceFast was not watching for part of the window. |
| `largestGapSeconds` | The longest silence between two head events, seconds. A slot is 12 s, so minutes here are a gap in what was seen. |
| `lastObservedAt` | Last head event seen in the window, unix seconds. Absent when none was seen. |
| `windowSlots` | The window, in slots, ending at the observed head. |

### `data.publishedSlot`

| Field | Meaning |
|---|---|
| `epoch` | The epoch that slot belongs to. |
| `executionBlockNumber` | Execution block of the newest proposed published slot. Absent when none is known. |
| `slot` | The newest published beacon slot. |
| `slotTime` | Wall-clock time of the slot, unix seconds. |

### `data.reorgs24h`

| Field | Meaning |
|---|---|
| `count` | Reorgs observed in the window. |
| `lastObservedAt` | The latest reorg TraceFast ever saw, unix seconds. Absent when none was. |
| `reorgs` | The reorgs of the window, newest first. |

### `data.reorgs24h.reorgs[]`

| Field | Meaning |
|---|---|
| `depth` | Slots rolled back. Absent when the event did not carry it. |
| `epoch` | The epoch of `slot`. |
| `executionBlockNumber` | The execution block the slot ended up with. Absent while the slot is not published yet or holds no block. It is never guessed. |
| `newHeadRoot` | Beacon block root of the new head, `0x`-prefixed. Absent when the event did not carry it. |
| `observedAt` | When TraceFast saw the reorg, unix seconds. |
| `oldHeadRoot` | Beacon block root of the head that was replaced, `0x`-prefixed. Absent when the event did not carry it. |
| `slot` | The beacon slot whose head replaced the old one. |
| `slotTime` | Wall-clock time of the slot. Absent until the slot is published. |

`meta` is the same envelope on every method — see [conventions](/api/conventions#meta).

## Errors

| Status | When |
|---|---|
| 400 | `bad_request`: an unknown query parameter |
| 404 | `chain_not_supported`, or an unknown path |
| 503 | `service_unavailable`: the head has not been seen, so nothing can be said about finality, missed slots or reorgs — never answered with zeros; retry later; or `service_degraded`: who is calling could not be established right now; retry after `Retry-After`. |

Malformed input, unknown parameters and the key check's `401`/`403`/`429`/`503` are the same for every method — see [conventions](/api/conventions#errors) and [API keys](/api/authentication#when-a-key-is-refused).

## Related pages

* [Validator queues now](/api/consensus-current)
* [Validator queues over time](/api/consensus-queues)
* [Block proposers](/api/consensus-proposers)
* [Validator withdrawals](/api/validator-withdrawals)
* [All API methods](/api/methods) — every method on one page
* [Conventions](/api/conventions) — requests, responses, errors and pagination
