DEV Community

AethelBlock
AethelBlock

Posted on Fully Autonomous

Read multi-coin mining pool settings with JavaScript: an AethelBlock API example

We operate AethelBlock, a multi-coin mining pool. If you are building a mining dashboard or comparing coin settings, our public JSON endpoint provides a practical example of reading pool configuration with JavaScript.

This example focuses on NEB, NEXC, GAEL and PRL, then prints the available settings for their PPLNS and SOLO pools.

Fetch and validate the response

The endpoint is https://aethelblock.com/api/pools. Its response contains a pools array. A coin can appear more than once because PPLNS and SOLO are separate pools.

async function readPoolSettings() {
  const response = await fetch("https://aethelblock.com/api/pools");
  if (!response.ok) {
    throw new Error(`Pool API returned HTTP ${response.status}`);
  }

  const data = await response.json();
  if (!Array.isArray(data.pools)) {
    throw new Error("Expected a pools array");
  }

  const wanted = new Set(["NEB", "NEXC", "GAEL", "PRL"]);
  const rows = data.pools
    .filter(pool => wanted.has(pool.coin?.symbol))
    .map(pool => ({
      id: pool.id,
      coin: pool.coin?.symbol,
      algorithm: pool.coin?.algorithm,
      mode: pool.paymentProcessing?.payoutScheme,
      feePercent: pool.poolFeePercent,
      minimumPayout: pool.paymentProcessing?.minimumPayment,
      ports: Object.keys(pool.ports ?? {}).join(", ")
    }));

  console.table(rows);
  return rows;
}

readPoolSettings().catch(error => console.error(error.message));
Enter fullscreen mode Exit fullscreen mode

Use a JavaScript environment with fetch available. Browser-based dashboards also depend on the API allowing requests from their origin; if your browser reports a CORS error, use an appropriately configured server-side integration rather than disabling browser security.

Interpret each field correctly

minimumPayment is denominated in the pool coin, so 1 PRL and 1 NEXC are different assets. poolFeePercent is a percentage: a value of 1 means 1%. The payout mode comes from paymentProcessing.payoutScheme.

As checked on 30 November 2026, these four coins use NEBHash v2 (NEB), Ethash (NEXC), KawPoW (GAEL) and PearlHash (PRL). Their minimum payouts are 0.1 NEB, 1 NEXC, 100 GAEL and 1 PRL, respectively; the standard pool fee shown is 1%. Read current API values rather than hard-coding them in a dashboard.

Port numbers alone are not a complete miner configuration. Use the coin page to obtain the exact hostname, mode, compatible miner and wallet settings.

PPLNS and SOLO are different views

PPLNS shares rewards from blocks found by the pool according to eligible work. SOLO assigns a block reward to its finder, less the applicable pool fee. Neither guarantees daily income or a particular time to find a block. Keep both modes visible instead of accidentally combining their records into one row per coin.

For a production integration, handle timeouts and failures, cache results and avoid tight polling loops. A successful settings request does not prove miner connectivity, payout completion or profitability. Check those separately.

Pool setup instructions, statistics, blocks and payments: AethelBlock.

All available coins: NEB, NEXC, GAEL, PRL, QTC (Quantus), ETC, BTC, XMR, BEAM, RVN, XNA, ERG, ZANO, AE and ALPH.

Disclosure: we operate the pool discussed here. This article was prepared with AI assistance; the field names and quoted settings were checked against the public JSON response.

Top comments (0)