JavaScript
const data = await fetch('/api/mining-chance', {
cache: 'no-store'
}).then(r => r.json());
console.log(data);
Öffentliche Read-only-Endpunkte für eigene Dashboards, Discord-Bots, Home Assistant oder Monitoring. Admin-/Operator-Endpunkte gehören ausdrücklich nicht zur Public API.
| Endpoint | Inhalt | Beispiel |
|---|---|---|
/api/status | Bitcoin Core Sync, Blockhöhe, Header, Disk-Status | öffnen ↗ |
/api/system-status | Node, Team, Solo, Website, Database | öffnen ↗ |
/api/pool-address-stats | aktive/entlohnte Adressen | öffnen ↗ |
/api/mining-chance | Team/Solo Hashrate und Blockchance | öffnen ↗ |
/api/hashrate-history | Pool-Hashrate-Historie | öffnen ↗ |
/api/wallet-stats?address=... | öffentliche Mining-Statistik einer Wallet | Wallet als Query-Parameter |
/api/network-blocks | aktuelle Bitcoin-Blöcke | öffnen ↗ |
/api/roulette | aktuelle öffentliche Roulette-Runde | öffnen ↗ |
/api/roulette-winners | Winner-History + Commitments | öffnen ↗ |
/api/transparency | Fees, Minimum Payout, öffentliche Pool-Adressen | öffnen ↗ |
/api/transparency-history | Payouts, Blocks, Uptime-Historie | öffnen ↗ |
/api-extra/status-history?window=24h | 24h/7d Service-Historie | öffnen ↗ |
/api-extra/pool-rules | öffentlich sichere Miningcore-Regeln | öffnen ↗ |
Bitte Live-Endpunkte nicht mehrfach pro Sekunde pollen. Für normale Dashboards reichen typischerweise 5–30 Sekunden; Historien deutlich seltener.