# GET /v1/xrpl/metrics/network-history

XRPL network history: the XRP burned per UTC day over 30 or 365 days, from the stored total XRP, and the share of each day's stored slots whose open ledger fee was above the base fee.

## Purpose

Serves the XRP the ledger destroyed in fees day by day, and how often its open ledger fee was escalated, from the figures the service stores every 15 minutes from one dedicated upstream, with no ledger read for the data: per UTC day over the last 30 days (`window=30d`, the default) or 365 days (`1y`); any other `window` answers 400 naming it, with no read. `days` lists the UTC days closed at the network's latest written 15-minute slot, oldest first; the day holding that slot is still open and not listed. `day_columns` names the cells of each day row, always: `date`, `burned_xrp`, `points`, `escalated_slot_ratio`, `escalation_points` and `reasons`; `days` holds one row array per day in that order. `date` is the UTC day (YYYY-MM-DD); `burned_xrp` = the previous day's last stored total XRP (`total_coins` / 1000000, exact) minus the day's last, in XRP, exact, the first day reading the day before the window in the same request (`null` when either day has no stored total XRP); `points` is the stored 15-minute slots the day's total XRP comes from (96 for a full day, 0 without a stored value, `null` for a day rolled up before the counts were stored). `escalated_slot_ratio` = the day's stored slots holding both the open ledger fee and the base fee whose open ledger fee is above the base fee, compared as numbers, never as text, over `escalation_points`, the slots holding both: a fraction, a decimal string of at most 18 decimals rounded half-up, `null` when no slot holds both. It is the rule of `fee.escalated` of `/v1/xrpl/metrics/network`, counted over the stored slots. Raw 15-minute slots are kept 30 days, so a day that ends at or before the latest written slot minus 30 days is `beyond_raw_retention` (its ratio `null`, its burn still served from the daily totals), and a day crossing that edge is served from the slots left; a day inside the retention that ends at or before the first stored base fee slot (every such day while none is stored) is `warming_up` (ratio `null`). `gap` marks a partial or unknown figure: `points` `null` or below 96, the day's or the previous day's stored total XRP missing (`burned_xrp` `null`), or, on a day neither code explains, `escalation_points` below 96. Each day's `reasons` cell lists `warming_up`, `beyond_raw_retention` and `gap` in that order, each when it applies, and is empty for a complete day. Before the network's first snapshot run, `days` is empty and the top-level `reasons` is `warming_up`; it is empty otherwise. The stored series are read in one request per window, cached until the end of the latest written slot and for at most 900 seconds; when they cannot be read, the last answer within 1800 seconds is served with `meta.stale` true, else the answer fails (503 `upstream-unavailable`). `meta.ledger_index` comes from the latest validated ledger, read through the same cache entry as `/v1/xrpl/ledger/latest`, the route's only upstream read; `meta.as_of`, `age_seconds`, `cache` and `stale` also reflect the read of the stored series the answer is built from (the oldest read, the worst cache state, stale when either is), so the data is as old as that stored read. An answer is fresh for 4 seconds, the policy of that latest-ledger read. Size, measured on the route: the JSON answer is about 1,936 bytes at `30d` and 23,365 at `1y`, under the MCP limits of the reference agent host (25,000 tokens, and 50,000 characters before a tool result is saved to a file). The burn and the ratio are defined computations over the stored series, not advice. The example is illustrative, computed by the route from a seeded store of 15-minute network snapshots until a served mainnet answer replaces it, and lists only the last three of its 30 day rows.

## When to use

To see how much XRP the ledger destroyed in fees on each of the last 30 or 365 days, and on which days the open ledger fee was escalated above the base fee and how often.

## When not to use

To pick the fee to put on a transaction (use `/v1/xrpl/fee`), or to read the burn over the last hour, day, week or month and the live fee escalation signals (use `/v1/xrpl/metrics/network`).

## Parameters

| Name | In | Required | Description | Constraints | Example |
|---|---|---|---|---|---|
| `window` | query | no | 30d (30 UTC days) or 1y (365 UTC days), back from the latest written 15-minute slot (default 30d). | One of 30d or 1y; any other value is rejected with 400 | `30d` |

## Request example

```sh
curl -s "https://api.criptonlabs.com/v1/xrpl/metrics/network-history?window=30d"
```

## Response example (200)

```json
{
  "window": "30d",
  "day_columns": [
    "date",
    "burned_xrp",
    "points",
    "escalated_slot_ratio",
    "escalation_points",
    "reasons"
  ],
  "days": [
    [
      "2026-11-08",
      "1346.183265",
      96,
      "0.010416666666666667",
      96,
      []
    ],
    [
      "2026-11-09",
      "1303.54156",
      96,
      "0.041666666666666667",
      96,
      []
    ],
    [
      "2026-11-10",
      "1314.941673",
      96,
      "0.020833333333333333",
      96,
      []
    ]
  ],
  "reasons": [],
  "meta": {
    "ledger_index": 108267510,
    "ledger_state": "validated",
    "as_of": "2026-11-11T20:22:56.994Z",
    "age_seconds": 0,
    "cache": "miss",
    "stale": false
  }
}
```

## Errors

- 400 [invalid-parameters](https://api.criptonlabs.com/errors/invalid-parameters.md)
- 400 [bad-request](https://api.criptonlabs.com/errors/bad-request.md)
- 429 [rate-limited](https://api.criptonlabs.com/errors/rate-limited.md)
- 503 [upstream-unavailable](https://api.criptonlabs.com/errors/upstream-unavailable.md)

## Caching

Fresh for 4 seconds; on upstream failure the last good value is served for up to 60 seconds (`meta.stale` is `true`), then the service answers 503. See the [freshness guide](https://api.criptonlabs.com/docs/guides/freshness.md).

## Rate limit

Tier `expensive`. See the [rate-limits guide](https://api.criptonlabs.com/docs/guides/rate-limits.md).

## MCP tool

The MCP tool `xrpl_metrics_network_history` returns the same data. See the [MCP quickstart](https://api.criptonlabs.com/docs/guides/mcp-quickstart.md).
