MidasMining

Public API — CommonFoundry (CMFD) pool & chain data

All endpoints below are public, read-only, GET-only, and require no authentication. Every route sends Access-Control-Allow-Origin: *, so browser-side apps on any origin can consume them directly. No rate limits are enforced today — be reasonable with polling intervals.

Base URL: https://midasmining.net  ·  all paths are relative to it. Data comes from our own pool node and chain explorer — the same sources the dashboard uses.

Pool statistics

GET /api/v1/pool

The full live pool snapshot (~220 KB). Key fields:

FieldMeaning
pool.reported_work_rate_fw_per_secondlive pool hashrate (fw/s)
pool.workers[]every registered worker: connected, hashrates, shares, payout address
pool.accepted_heightchain height the pool follows
pool.ledger.canonical_pool_blockslifetime canonical blocks found
pool.ledger.blocks[]newest 100 blocks: height, hash, state, reward, confirmations
pool.ledger.payout_transactions[]payout history: state (prepared/broadcast/confirmed), amount, confirmations
pool.ledger.payouts[]per-address totals: credited, reserved, confirmed, accepted/rejected shares
pool.bonus_rate_bps / pool.operator_fee_bpsbonus and fee configuration

Mining descriptor (aggregator-grade)

GET /hrapi/mining

The full pool descriptor in a self-describing format designed for aggregators and stats sites: instance identity (coin/chain/algorithm/platform), policy (fee, payout threshold, stratum routes with cert pin), units (atomic decimals, hashrate unit), and the live datasets — current (hashrate/workers), blocks, payments, network, and a 48-hour pool-wide hashrate-history series. Schema midas.mining.v1. Every data group carries availability + snapshot timestamps.

Market price

GET /hrapi/price

CMFD price from the AlphaSwap CMFD/USDT market (last trade, plus the live bid/ask book and 24h change).

{"price_usd": 0.0016, "change_24h": 6.67, "best_bid": 0.0015,
 "best_ask": 0.00165, "basis": "last_trade", "market": "CMFD/USDT",
 "source": "alphaswap", "ts": 1794868405}

Active workers

GET /hrapi/active?minutes=N

Workers seen connected within the last N minutes (default 10). Returns {minutes, ts, payouts[], workers[]}.

Worker hashrate history

GET /hrapi/history?addr=<payout-address>&hours=N

30-second-sampled hashrate points for one payout address (up to 48 h retained). Returns {addr, points:[{ts, rate, avg}]}.

Chain explorer

Read-only queries against our own chain node. Every call requires this header:

X-CMFD-Network-Id: 88296bc39c10e8bc1dd4818d4d42412fe5f08210651110377f495da299812f62
GET /xnode/v1/explorer

Chain snapshot: accepted/validated height, peers, cumulative work.

GET /xnode/v1/explorer/block/<height>

Full block: coinbase, transactions, confirmations, timestamp.

GET /xnode/v1/explorer/transaction/<txid>

Transaction detail: inputs, outputs, status, validated height.

GET /xnode/v1/explorer/address/<address>[/<cursor>]

Address history: balance, received/sent entries, has_more + cursor for pagination.

Rich list

GET /xrl/richlist.json

Top 250 holders. Schema CMFD_RICHLIST_V1: height, total_supply_atoms, addresses_with_balance, top[] (rank, address, balance_atoms, outputs). Regenerated every 30 seconds.

Address / block tagging

GET /pooltags?addresses=<a1,a2,…>&blocks=<id1,…>&txs=<t1,…>

Known-identity tags for addresses and blocks (MidasMining, CrispyNapkin, BLOKZ, AriaPool, Sponsor…). Max 50 ids per request, each 64 hex characters, comma-separated.

Notes: all endpoints are GET-only; no authentication; no cookies. /api/v1/pool is served no-store (always fresh); the price and rich list refresh on ~30 s cycles. Large responses (/api/v1/pool) — poll at reasonable intervals. If your site consumes this in a browser, CORS is already open (*); server-side consumers need nothing special.