--- name: chain-status description: >- Says whether Chord's data is fresh on each chain right now: quotes (the routing engine plus a test quote sent every minute), the trade tape (age of the newest indexed trade) and, for one chain, the hourly rollups behind boards and charts, each fresh, lagging or down with the lag in seconds, blocks or slots. Adds uptime over 24 hours to 90 days, bad minutes, open and recent incidents, and which features each chain serves. Covers Monad, Robinhood Chain, Arc, Avalanche, Base, BNB Chain, Arbitrum, Ethereum and Solana. Use before trusting another answer ("is Solana data up to date", "why is the Base board empty", "is Chord down"), or when the user asks about uptime or incidents. Not for a chain's trading activity (use chain-overview) or blockchain health itself. Free; read only. license: MIT compatibility: Needs python3 and HTTPS to api.getchord.xyz. CHORD_API_KEY is optional here (every route it calls is free). metadata: author: Chord (getchord.xyz) homepage: https://chordsi.xyz/s/chain-status version: "1.0.0" --- # Chain Status Three sources, all free. The API's own health check (`/v1/health/chains`) gives each chain's routing engine state and the age of the newest trade Chord indexed. Chord's status probe (`/v1/status`, run from Cloudflare's edge every minute, including one small test quote per chain down the public path) gives uptime, bad minutes and incidents since October 2026. The chain directory (`/v1/chains`) lists which features each chain serves. With one chain, its own status route adds the hourly rollups, how much history is kept and lane details (Solana slot lag, Arc's pool and holder index). ## Run it ```bash python3 scripts/chain_status.py [CHAIN] [--days N] [--limit N] ``` - `CHAIN`: `monad`, `robinhood`, `arc`, `avalanche`, `base`, `bnb`, `arbitrum`, `ethereum` or `solana` (or a chain id). Leave it out for every chain. - `--days`: incidents that ended in the last N days, 1 to 90 (default 1 for every chain, 7 for one). Open ones always show. - `--limit`: incidents listed, newest first (default 10, max 100). Example: `python3 scripts/chain_status.py solana` ## Read the answer - `summary` (every chain): chains grouped `fresh`, `lagging`, `down` by their worse feature. - Per chain, `quotes`: `state`, `engine` (`ok`, `starting`, `stale`, `down`), `lastSyncBlock`, `probe` with `probeNote` (for example "engine stale", "quote failed") and `testQuoteMs`. Solana's quotes are `not measured`. - `tradeTape`: `state`, `newestTradeAgeSec` against `freshWithinSec` (600 s Monad, 2700 s Robinhood Chain, 1800 s Arc, 900 s the other EVM chains, 120 s Solana). A quiet chain can show an old newest trade without lagging. - `uptimePct` (24 h and 30 d; all four windows for one chain): degraded minutes count as up, so read `badMinutes` too (down and degraded minutes today and over 7 days). A window not yet 90% sampled says so. - `notServed` (every chain) or `features` (one chain): what the chain serves, from the directory. A listed feature means the route exists; this skill does not measure every lane (LP pools, holders) behind it. - `detail` (one chain): `rollups.state` and `ageSec` (passes run every 10 minutes; they feed the chain overview, token board, venue share and hourly figures), `hourlyHistoryFromUtc`, `rawTradesKeptFromUtc` (single trades older than this are gone; hourly figures stay), `minTradeUsd` (BNB Chain skips trades under $100). Solana: `lagSlots` behind the chain head, `lastBlockAgeSec`, `swapsPerMin`, `publicGate`, and the venues it does not read. Monad has no route of its own. - `api`: the API as a whole. `probe.current` false = the probe is over 3 minutes old and its statuses are unknown. - `openIncidents` / `recentIncidents`: chain, feature, start and end UTC, minutes, worst level, note. - `rules`: the thresholds, in words. ## How to answer the user 1. Answer the question first: "Solana data is fresh: the newest trade is 2 s old and the tape is 0 slots behind." 2. For anything lagging or down, give the lag with its unit and the note, and say what it affects (quotes and swaps, or tape-based answers: trades, candles, boards, wallet PnL). 3. Mention open incidents and, when asked about reliability, uptime with the degraded minutes beside it. 4. Do not guess at causes beyond the notes, and do not promise when a lagging feed will recover. ## Cost Free: every route this skill calls is free on a ChordSI key and needs no credit. If the script exits with code 4 anyway, show the person the message; chordsi.xyz/me is where they manage the key. Exit 1 means the health check itself did not answer, which is a finding: say Chord's API is not answering right now. ## Chord endpoints it calls - `GET /v1/health/chains`: engine state and newest trade age per chain (always). - `GET /v1/status`: the probe's uptime, bad minutes and incidents (always; the answer still comes if it fails). - `GET /v1/chains`: the features each chain serves (always; skipped with a note if it fails). - One chain: `GET /v1/chains/{chain}/status` (Avalanche, Base, BNB Chain, Arbitrum, Ethereum), `GET /v1/rh/status`, `GET /v1/arc/status` or `GET /v1/chains/solana/status`. Monad has none.