Purpose and Background
monerometrics is an open-source observatory for Monero network health, consisting of a public dashboard and a public API, with a core focus on chain reorganizations (reorgs), orphan blocks, and mining pool centralization—information that most block explorers present poorly.
The project was born from the August 2025 Qubic incident: a mining pool that paid miners in its own token approached half of the network hashrate, then withheld blocks and released a longer private chain. On September 14, 2025, this caused an 18-block reorganization at height 3,499,659, erasing about 36 minutes of history—far beyond the 10 confirmations widely regarded at the time as final—and transactions considered settled became unconfirmed again. Public discussion at the time lacked reliable, accessible data, and monerometrics fills that gap with a neutral, verifiable, reorganization-aware observatory.
The project is open source and self-funded, with no ads and no tracking. The dashboard and API are permanently free and open, with no paid tiers, and no paid tiers will be introduced. V1 was completed as a French professional IT infrastructure project and earned a diploma; the goal of V2 is to hand the project over to the Monero community. The project is community-funded, with Kuno crowdfunding supporting the next two years: hosting, FCMP++ readiness, free reorganization alerts, open data export, and a second node.
Key Capabilities (Five Main Dashboard Sections)
The dashboard is a React SPA divided into five sections, available in English, French, and Spanish, with light and dark themes and mobile readability:
- Consensus and Reorganizations: chain fork visualization that draws competing branches as a tree; reorganization statistics by window (up to all recorded data), plus orphan block history. Each block is labeled with its mining pool and the basis for attribution, and merge-mined blocks are marked.
- Mining Concentration: mining pool distribution, the combined share of the top two pools, and the evidence behind each attribution.
- Network Status: hashrate, block time variance, mempool, issuance, and a fee estimator that reads the node's four priority levels in real time.
- Peer-to-Peer Market: Haveno premium relative to spot (both buy and sell sides), real-time order book depth, listing liquidity, and premium by payment method.
- THORChain: whether native XMR is live on THORChain (pool, inbound vault, pause status), checked every 10 minutes.
- Transaction Search: paste a transaction hash to return the information Monero actually makes public,as well as the mining pool that mined the block and whether that height was ever contested by a reorganization. The hash is transmitted via a POST request body and never appears in the URL.
All time series are navigable: a range bar below the chart can be dragged and zoomed, and statistics follow the visible window rather than the entire series.
Public API and MCP
The public API is built on FastAPI, with read-only JSON endpoints grouped by topic and documented via OpenAPI;https://monerometrics.net/build provides ready-to-copy recipes (badges, reorganization bots, checkout confirmation, THORChain wait scripts, MCP configuration). MCP server:https://api.monerometrics.net/mcp(Streamable HTTP, now listed in the MCP Registry).
Derived readings (both a regular page and JSON are provided):
- How many confirmations?: the number of confirmations a merchant should wait for a given amount, calculated from the largest mining pool's 7-day share (Bitcoin whitepaper Section 11), and no lower than the deepest reorg observed; it tightens automatically if mining concentration rises.
- State of Monero mining: one report per full month, including pool shares, the Nakamoto coefficient, how attribution is proven, reorgs, orphaned blocks, hashrate and the Haveno premium, compared with the previous month.
- monerometrics Haveno Premium Index: the volume-weighted median premium of Haveno trade prices over spot, tallied weekly, distinguishing reversible and final payment methods.
How it works: reorg detection and indexing
The worker (apps/worker/indexer.py) is the core of the project. Every POLL_INTERVAL seconds it queries monerod status, and once the node is synced it performs three passes:
- Confirmation-window rescan (reorg detection): a single call re-fetches the most recent CONFIRMATION_WINDOW block headers (default 60) and compares each hash against the stored canonical hash. Any mismatch is a reorg: the stored blocks are marked as orphaned (is_canonical = false), the node's blocks become canonical, and a row is written to reorgs_detected with the true depth and the number of affected transactions. Indexing only forward would never revisit the past, so this pass is what makes reorg detection work.
- This window is also the detection limit. Reorgs deeper than CONFIRMATION_WINDOW rewrite heights that the rescan does not look at, so they are missed entirely rather than reported with a wrong depth. A 60-block margin is very generous (the deepest recorded Monero reorg was 18 blocks), but the limitation is structural, and the published reorg counts are only complete within that depth. Raising it adds a larger block-header call to every poll.
- The transaction count uses num_txes, excluding coinbase, so it counts transactions users actually broadcast rather than the miner's own outputs.
- Forward indexing: fetch blocks above the last indexed height. Near the chain tip, full blocks are pulled one by one to ensure accurate attribution; when far behind (a fresh deployment), it switches to fast block-header backfill (about 1000 blocks per call), which is enough to support the network-health series,and can fill a long window within two hours.
- Alternate chains (orphans): most competing blocks are decided within seconds, far earlier than the next polling round, so the rescan above can only catch blocks that have already been indexed. Therefore the worker also reads the node's own alternate chains (get_alternate_chains, an RPC port accessible only to the worker) and records each competing block as an orphan. Before this pass, only about one in four orphans was recorded.
- Observability: the worker exposes Prometheus metrics at :9100/metrics (indexing latency, reorg count, sync status, pool index size, blocks proven by view key, attribution conflicts) and writes a heartbeat file for the Kubernetes liveness probe to read. The heartbeat is written only after a pass completes successfully; a loop that keeps failing will be restarted and trigger the WorkerStalled alert.
Pool attribution
Monero is private by default: the coinbase contains no pool name, and stealth addresses mean there is no way to look up "who was paid." Attribution must be proven, never assumed. monerometrics never infers share from a pool's self-reported hashrate; it counts only blocks that can be linked to a pool with evidence, and records the type of evidence used per block in blocks.pool_source.
View key proof (viewkey_proof, cryptographic): some pools publish their wallet's primary address and secret view key (see blocks.p2pool.observer/proofs). A view key can only reveal incoming transactions and cannot spend, which is enough to prove ownership of a given coinbase output without trusting anyone's API: if P_expected equals the output key at index i, then that output pays to that pool's wallet—this is a mathematical fact, independent of the pool's API, and therefore unaffected by reporting delays (delays would make new blocks appear unattributed). This implementation was written from scratch.
Access
- Dashboard:https://monerometrics.net
- Public API:https://api.monerometrics.net(OpenAPI documentation)
- MCP:https://api.monerometrics.net/mcp
- Tor hidden service: 6wbhchvavey26lbtscl6w6qg76balycixtsklcggrsslyk4xah6sbbad.onion (dashboard + API, no Cloudflare, no IP exposure)
Tor access essentials: single origin, no leaks—the hidden service serves the dashboard at / and reverse-proxies the API at /api; at runtime the SPA detects the .onion host and switches to that relative path, so browser requests never leave the hidden service for the clearnet, and the same build serves both. TLS is deliberately not used because Tor already provides end-to-end encryption and authentication, and the .onion address is the service's public key. The hidden service vhost runs the same ModSecurity rules as the clearnet site. The .onion vhost listens only on 127.0.0.1:8080, is unreachable from the internet, and only the Tor daemon can access it. All requests come from 127.0.0.1, and access logging is disabled. The clearnet site advertises it via the Onion-Location header. Rate limiting by IP is meaningless on Tor, so hidden service traffic is tagged by nginx and isolated in a separate bucket with a higher limit; the tagging header is stripped on the clearnet vhost and cannot be forged from the internet. Deployed by the tor Ansible role (config/ansible/roles/tor/).
Deployment and architecture
Visitors are forwarded via Cloudflare (TLS termination, edge protection) to a hardened edge server (nginx + ModSecurity WAF); the edge serves the static dashboard and reverse-proxies the API to the k3s node, where the application core runs: the Monero node, the indexer, PostgreSQL, and the API. There is also a separate path: a Tor hidden service running at the edge, completely bypassing Cloudflare, serving the dashboard and API on the same origin, still behind the same WAF.
The platform runs on two Ubuntu 24.04 servers in Hetzner Cloud (Nuremberg), on a private network, each with its own firewall, and neither exposes SSH to the internet: administration is only via a Tailscale (WireGuard) mesh joined by both servers, and Grafana is also accessible only via Tailscale. Backups are paused: the toolchain (Restic, encrypted, see k8s/monerometrics/BACKUP-PRA.md) is kept in the repository, but no scheduled backup currently runs.
Key choices: per-server firewalls, no public SSH anywhere, WAF on the only public web surface, zero-trust management mesh, k3s nodes expose only the Monero P2P port. In October 2026 the dedicated SSH bastion was removed because Tailscale already provides zero-trust entry; Tailscale's built-in SSH is disabled, and ordinary key-based OpenSSH runs over the mesh. Everything is infrastructure as code: Hetzner and Cloudflare resources with Terraform, server configuration and CIS-aligned hardening with Ansible, images published to GHCR. Monitoring uses Prometheus + Grafana, with alert rules for indexing, node sync, disk, and failed workloads.
Secrets: the cluster is configured with OpenBao (the free fork of Vault), and manifests contain no plaintext credentials. OpenBao self-unseals at startup (static sealing, with keys kept in a Kubernetes Secret created outside the repository); workloads can also fall back to Kubernetes Secrets (postgres-credentials-fallback), so a sealed vault does not take services down.
Storage: the full-chain index database (3.77 million blocks and all time series) takes 3.1 GB, about 540 bytes per block, growing about 150 MB per year; the pruned Monero blockchain takes 106 GB. In October 2026 the disk was expanded from 128 GB to 250 GB with community funding (Kuno milestone 1). Cloudflare, Let's Encrypt, Tailscale, and GitHub Actions use free tiers.
Use cases
- Exchanges and merchants evaluating confirmation policies and setting checkout confirmation waits.
- Researchers and the community monitoring mining pool concentration, reorgs, and orphaned blocks.
- Developers integrating reorg alerts and confirmation recommendations into their own systems via the public API or MCP.
- Privacy-sensitive users who need censorship-resistant access without exposing their IP (Tor hidden service).
Limitations and notes
- Reorg detection is capped at CONFIRMATION_WINDOW (default 60 blocks); deeper reorgs are missed entirely; published reorg counts are only complete within that depth.
- Attribution only covers mining pools that can provide evidence (such as view key proof); blocks that cannot be proven are not counted toward shares.
- Backups are currently paused.
- Details such as specific fees, pricing, and additional platform support are not yet available.