Back to all services Back to all services
Celestia logo

Celestia

Mocha

chainID: mocha-5
Mocha Mainnet

Fibre Network Monitor · API

Everything the Fibre Network Monitor page shows, as a public, read-only API: readiness against the 2/3 threshold, identity, round trips from several regions, signatures, shard retention, blobs, publishers and escrow. Also in Prometheus format, for your own dashboards and alerts.

Base URLhttps://fibre-api.cumulo.com.es
Chains/v1/mocha-5 testnet · /v1/celestia mainnet, live from celestia-app v10 (until then 503 fibre_not_active)
AccessNo key. GET only. CORS open.
FreshnessRecomputed every minute
Limits120 requests per minute per IP (search: 20)
DescriptionOpenAPI 3.1
GrafanaPublic dashboards (the whole network, built on this API) · dashboard pack for your validator in your own Grafana

API usage

Who uses this API for the Mocha testnet and how, counted on every request to its /v1/mocha-5/ endpoints. No IP address is stored or published.

Loading usage…

Quick start

Readiness of the network, one validator, and its metrics for Prometheus:

curl -s {BASE}/v1/mocha-5/summary
curl -s {BASE}/v1/mocha-5/validator/{VAL}/status
curl -s "{BASE}/v1/mocha-5/metrics?validator={VAL}"

A validator can be named by its consensus address (valcons), its operator address (valoper) or its moniker (exact match, case-insensitive). A moniker shared by more than one validator answers 409 with {"error":"ambiguous","candidates":[...]}; use the valcons then. /metrics follows the same rule.

More on GitHub: the README ("I want to..." table and quick start), the usage guide with real responses for every endpoint, and an example network dashboard made only of badges that read this API live, with its generator (generate_network_dashboard.py, Python 3, standard library only) to build your own.

Conventions

WhatHow
IdentityEvery figure about a validator is keyed on its consensus address (valcons).
AmountsIntegers in utia (1 TIA = 1,000,000 utia). Chain coins keep the chain format: { "denom": "utia", "amount": "…" }.
Percentages0 to 100 in JSON (*_pct, uptime); 0 to 1 in Prometheus (*_ratio).
CountsPairs [ok, total], so you can rebuild any percentage and know how many checks it rests on.
Periodsh24, d7, d30 in objects; 24h, 7d, 30d, all in query parameters.
TimesISO 8601 in UTC in JSON; Unix seconds in Prometheus. Durations in ms in JSON, seconds in Prometheus.
No datanull means there is nothing to count yet (for example no blob in the period). It never means zero. Prometheus leaves those series out.
SignaturesThe publisher stops collecting signatures at 2/3 of the stake, so a validator that did not sign a blob has not failed by itself.
2/3Every comparison with 2/3 is exact, in integers: tokens * 3 >= bonded * 2 for readiness and quorum, endorsed_power * 3 >= set_power * 2 per blob (meets_threshold). Rounded percentages such as endorsed_stake_pct are for reading, never for the test.
Availabilityreconstructable: false (state: "not_proven") means our sample did not reach the 4,096 verified rows needed to prove it, not that the blob is lost. coverage_pct says how far it got; availability: null means not checked.
Withdrawalswithdrawals lists only pending ones. withdrawals_history has every request; once past available_at and no longer pending it is paid_inferred (the module pays it with no transaction of its own).
RolesIn /validator/{id}/blobs and in the signers of /blobs/{id}, each validator of a blob's set is signed, not_collected (its host was ready and the publisher did not need it: not a failure) or not_ready (it could not sign). signed / (signed + not_collected) over 30 days is its endorsements.d30.
ChargesThe escrow charge of a blob is (fixed_gas + gas_per_chunk * ceil(blob_size / chunk_bytes)) * utia_per_gas, app constants of celestia-app given in summary.payment_formula with the version the node reports. Every blob is compared with it (matching_blobs of checked_blobs); for an app version we have no constants for it is null.
RTT quantilesrtt_by_region in the history: p50 and p95 per region and hour, nearest rank over every ready check of that hour (the raw RTT, not the smoothed one). Kept 7 days.

Stability and limits

  • v1 policy: on paths marked stable, fields are only added, never renamed, removed or changed in meaning. A breaking change means a new /v2, announced in advance, with /v1 kept running for a transition period.
  • Paths marked internal feed the web page and may change without notice.
  • Build on the documented fields; any other field may change.
  • Rate limit per IP: 120 requests per minute with a burst of 60 (about 61 at once, then 2 per second); search 20 per minute, burst 10; /status 300 per minute, burst 60, in its own budget. Above that the API answers 429 as JSON ({"error":"rate_limited"}) with Retry-After in seconds: wait that long. Every error, 4xx or 5xx, is JSON with CORS. 4xx answers are cached 5 seconds.
  • A parameter out of range (range, period, days) is not an error: the closest accepted value is used, the response says it in *_applied / *_requested and the header X-Fibre-Param-Adjusted.
  • Responses are cached for 30 to 60 seconds and the data is recomputed every minute, so polling faster gives nothing new. Closed archive days never change.
  • 503 means the chain is configured but its first cycle has not finished yet (after a restart). On /status it means not ready, and reason says why (see Uptime monitors).

Prometheus

/v1/{chain}/metrics serves the network figures and every bonded validator (about 3,000 series), or only the validators you pass in validator (repeatable or comma separated, up to 50). Scraping only your own keeps it small. Ready-made Grafana dashboard on these metrics: our dashboard pack (import it, pick your Prometheus and your validator).

Scrape configuration

scrape_configs:
  - job_name: fibre
    scheme: https
    metrics_path: /v1/mocha-5/metrics
    params:
      validator: ['{VAL}']
    scrape_interval: 60s   # the data changes once per minute
    static_configs:
      - targets: ['{HOST}']

Example alerts

groups:
  - name: fibre
    rules:
      # "and on(chain) ..." keeps it quiet while none of our probes report (our monitor, not your host)
      - alert: FibreHostNotReady
        expr: fibre_validator_ready == 0 and on(chain) (sum by (chain) (fibre_probe_up) > 0)
        for: 5m
        annotations:
          summary: "{{ $labels.moniker }}: Fibre host not ready by majority of regions"
      - alert: FibreRegionDown
        expr: fibre_validator_region_up == 0
        for: 15m
        annotations:
          summary: "{{ $labels.moniker }}: not ready from {{ $labels.region }}"
      - alert: FibreCertificateExpiring
        expr: fibre_validator_cert_expiry_timestamp_seconds - time() < 14 * 86400
        annotations:
          summary: "{{ $labels.moniker }}: Fibre certificate expires in less than 14 days"
      - alert: FibreNotKeepingData
        # An absent series means no data (no blob signed, or no check yet): it never fires on that
        expr: fibre_validator_obligations_served_ratio{period="24h"} < 0.99 and on(chain, valcons) fibre_validator_obligation_checks{period="24h"} >= 5
        for: 15m
        annotations:
          summary: "{{ $labels.moniker }}: did not serve rows of blobs it signed"
      # Our data is stale: do not blame the validator
      - alert: FibreMonitorStale
        expr: time() - fibre_data_generated_timestamp_seconds > 600

Metrics

Read from the live endpoint, so this list is always what it serves.

Loading metrics…

Uptime monitors

/v1/{chain}/validator/{id}/status answers 200 while the host is ready by majority of regions and 503 when it is not, with the same body saying why. A plain HTTP check in UptimeRobot, Uptime Kuma or similar is enough to get an alert, without parsing anything. The body field reason and the header X-Fibre-Reason say why: ready (200), not_ready, no_host (no Fibre host registered), monitor_unknown (none of our probe regions reported: our monitor, not your host) or warming_up (the aggregator just started). Add ?unknown=ok to get 200 for monitor_unknown and warming_up, so only your host can page you. An ambiguous moniker answers 409 with candidates.

curl -s -o /dev/null -w "%{http_code}\n" "{BASE}/v1/mocha-5/validator/{VAL}/status?unknown=ok"
curl -sI "{BASE}/v1/mocha-5/validator/{VAL}/status" | grep -i x-fibre-reason

Periodic report

The state of Fibre over one ISO week, calendar month or calendar year (UTC), closed or in progress, compared with the period before, and optionally for one validator. text is a short summary in plain English, ready for a post; every number in it is a field of the same answer. It is what the Report page shows, and what our Telegram bot @CumuloFibreBot sends to any chat.

curl -s "{BASE}/v1/mocha-5/report?period=month" | jq -r .text
curl -s "{BASE}/v1/mocha-5/report?period=2026-W40&validator={VAL}"
curl -s "{BASE}/v1/mocha-5/report?period=2026" | jq '.network.end, .usage.blobs'

period: week, month or year for the current one, or a given one (2026-W40, 2026-09, 2026). A closed period never changes. Uptime and data kept come from per-validator day totals kept without limit from 2026-09-25; companies and countries over time from 2026-10-04.

Endpoints

Generated from the OpenAPI description the API serves. "Open" runs the request with an example.

Loading the API description…

Archive

Every event and blob is also kept as one JSON Lines file per day and kind. Closed days are gzip compressed, never change, and their sha256 is listed in manifest.json, so a copy can be verified:

curl -s {BASE}/v1/mocha-5/exports | jq -r '.files[] | select(.closed) | .url'
curl -sO {BASE}/v1/mocha-5/exports/events-2026-09-26.ndjson.gz
sha256sum events-2026-09-26.ndjson.gz
curl -s {BASE}/v1/mocha-5/exports/manifest.json

# a whole month in one file (a month that is over: immutable, sha256 under "bundles" in the manifest)
curl -sO {BASE}/v1/mocha-5/exports/month/2026-09.tar
tar xf 2026-09.tar    # the daily files + manifest-2026-09.json with their sha256

To keep a complete copy up to date, deploy/mirror-archive.sh (in the aggregator package) downloads every closed file listed in the manifest that is not there yet and checks its sha256; run it daily from cron. The search endpoint also takes a day: /v1/mocha-5/search?q=2026-09-28 gives what was paid and what happened that day, with its files.

Reproducing the API from the archive

FileHow to read it
blobsOne line per blob. From 2026-09-26 10:07 UTC the signers are bitmaps: signed_bits and ready_bits (hex, most significant bit first) over the validator list of set_id in the valsets files. A validator could sign a blob when its ready bit is set; a set signed bit without the ready bit never happens. Before that (152 blobs of 2026-09-25/26) the lines carry the lists endorsers and not_collected instead.
valsetsEach distinct validator set, the first time a blob uses it: set_id, first_height (the first height a blob used it, not the height it came into force) and validators, the valcons list in bit order of the bitmaps.
valpowersFrom 1.19, each distinct voting power vector of a set, the first time a blob uses it: powers_id, set_id and powers in the order of the set's validators. A blob's powers_id gives the power of every validator at its promise height.
blobs_eligibilityCorrections to those 152 list-format blobs, which were written before readiness was tracked (their not_collected also lists validators that were not ready). Replace not_collected / ineligible by blob id. With them, decoding every blob reproduces endorsements.d30 of every validator. The closed blobs files are not touched.
retentionUntil 2026-09-26 13:00 UTC, one line per check (no type). After that, type: "hourly" lines per hour, region and validator, plus a type: "check" line for every check that was not served (the evidence; do not add these to the hourly ones). Counting: a check that could not connect is unreachable and is not a check (timeout, unavailable or error with a connection error; newer lines carry outcome_class). checks excludes unreachable, so checks + unreachable = the sum of outcomes (checks_total on newer lines). served / checks is the API's retention.served, signed_served / signed_checks its obligations (Keeps data). Checks after the window (phase: "after_window") never count.
eventsOne line per event. source: "tx_backfill" marks a transaction from before tracking started, added later with its block_hash and evidence (a day file that did not exist before; no closed file changes).
blobs_powerExact voting power of blobs recorded before 1.17 (endorsed_power, set_power, meets_threshold), read from an archive node at each promise height. Each one reproduces the published endorsed_stake_pct. The API marks it power_source: "backfill"; blobs recorded live say "recorded".
valsets_backfillThe validator set (set_id) of the 152 list-format blobs, which carry none, with the promise heights and blob files it applies to.
blobs_valpowersThe power vectors of the 8,627 blobs recorded before 1.19, read from an archive node, each with the blob_ids that use it (7 distinct vectors). For every blob the powers of its signers add up to its endorsed_power and all of them to its set_power; tools/backfill-valpowers.js rebuilds and checks it.
blobs_set_fixTwo blobs of 2026-09-28 whose signatures were mapped onto the validator set of the promise height. x/fibre checks them, by position, against the staking set of the promise height (GetHistoricalInfo), which is the CometBFT set of the next height; the two differ when a validator's power or membership changes in that block. Each line gives the right set_id, powers_id, bitmaps and power, and the role_changes. Since 1.21 new blobs use the right set. tools/fix-blob-sets.js finds and rebuilds them.
retention_hoursRetention hours of 2026-10-02 whose hourly lines could not be written (the server disk was full: hour 18 was cut in the middle of a line, 19 to 22 are missing). One line per validator and hour, all regions added up, from the aggregator state, the same counters the API serves. The first line lists replaces_hours and the cut lines: drop the hourly lines of those hours, and any line that is not valid JSON, and use these. The split by region of those hours and their failed check lines cannot be recovered. tools/recover-retention-hours.js writes it only if the state reproduces every whole hour of that day exactly.
retention_classoutcome_class (served, not_served, unreachable, after_window) of the pre-1.6.1 retention lines that were not served, so they count without applying any rule. outcome is what the probe saw; outcome_class is how it counts.
monthly bundlebundle-YYYY-MM.tar: when a month is over, every closed file of that month and manifest-YYYY-MM.json (their manifest entries with sha256) in one uncompressed tar. Written once and deterministic (sorted names, fixed mtime), so its sha256, listed under bundles in the manifest, never changes. A correction to that month written later is a file of its own (added_after in /exports). /exports/month/YYYY-MM.tar gives the bundle, or for the current month a tar built on request with the files as they are.
open dayToday's files are plain .ndjson, still growing. Hourly retention lines for an hour are written about 10 minutes after it ends, so the last hour is missing until then. Only closed (.gz) days are final.

Every h24 / d7 / d30 figure sums hour buckets from the start of the hour (now − N h) up to now: N full hours plus the current one. meta.windows in the summary gives the exact from and to. A check of all this runs as test/audit-consistency.js.