DebitMyData Mining

For developers

DMD Mining API

Every pool mining DMD, the DebitMyData coin, as JSON files: each pool's hashrate, miners, fees, payout schemes and stratum addresses from its own API, the blocks it found from the chain, its luck, and charts over time. Free, with no key and no sign-up, readable from any website.

Base addresshttps://mining.debitmydata.io/api/

Endpoints

  • GET /api/summary.json

    The network (height, last block, difficulty, its hashrate over the last hour and 24 hours, block time, reward, next halving) and every pool: its slug, name, website, country, software, status (up: its API answers; down; behind: its node is more than 5 blocks behind; none: no public API), its hashrate and miners as its API says, its hashrate from its blocks, its payout schemes and fees, its blocks over the last hour, 24 hours, 7 and 30 days, its last and first block, its luck_24h, and spark: its hashrate each hour of the last 24 (its blocks, for a pool without an API). Then others: the miners not in the pool list, and totals, with how many miners together found half of the blocks (nakamoto_24h).

    Every 20 seconds.
  • GET /api/pools/official.json

    One pool, by its slug: everything in summary.json, and how to connect (modes: each way to mine there, with its scheme, fee, minimum payout, endpoints with their stratum address and difficulty, username and password), its payout addresses and the text it writes in its blocks, how often its API answered (uptime_24h, uptime_7d), its luck over 7 days and average effort over 30, found: its last 100 blocks (with their status and effort when its API gives them), its orphaned blocks, and charts for 24h, 7d, 30d and 1y: its hashrate from its API (reported) and from its blocks (from_blocks), and the blocks it found.

    Every 20 seconds.
  • GET /api/blocks.json

    The last 100 blocks, newest first: height, hash, time (Unix seconds), the seconds since the block before, who found it (miner, and slug for a listed pool), reward in DMD, transactions, size, difficulty, and its status from the pool's API when it gives one.

    Every 20 seconds.
  • GET /api/distribution.json

    Who found the blocks of the last 24 hours, 7 days, 30 days, year, ever (all), and of the last 1,000 blocks: each miner's name, slug (listed pools), blocks and share, with how many together found more than half (nakamoto).

    Every 20 seconds.
  • GET /api/chart-24h.json

    The charts over time, for 24h, 7d, 30d, 1y and all, as chart-<range>.json. hashrate: times (each step's start, Unix seconds), each pool's hashrate from its API (pools, null where it didn't answer or wasn't followed yet), each pool's hashrate from the blocks it found (from_blocks: every block since block 1, the biggest pools each and the other miners together as others; together they make the network's), and the network's from the blocks. blocks: the blocks each pool found per step (series, the miners not in the list together as others).

    Every 20 seconds (30d, 1y and all: every 10 minutes).

Good to know

  • No key, no limits to sign up for. The files are static: read them as often as you like; every 30 seconds is enough. Any website can read them (CORS: Access-Control-Allow-Origin: *).
  • Times are Unix seconds (UTC). Hashrates are in hashes per second, amounts in DMD, fees in percent, shares, luck and effort as fractions (0.55 is 55%).
  • Who found a block comes from the chain, through DMD Stats' API, and DebitMyData's pool list (the text a pool writes in its blocks, or the address it pays). Everything about a pool besides comes from its own API, read every minute, and from the list's pools-info.json.
  • The pools' logos are at /logos/<slug>.svg, from DebitMyData's pool logos.
  • Run a pool? Add it to the pool list (how), or write to [email protected].
fetch("https://mining.debitmydata.io/api/summary.json")
  .then((r) => r.json())
  .then((s) => {
    for (const pool of s.pools) {
      console.log(pool.name, pool.hashrate, "H/s,", pool.blocks["24h"], "blocks today");
    }
  });

Get the DMD Mining app