Naar de inhoud
GET /v1/rewards

Block-reward economics over a window of blocks

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/hashrate-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/hashrate-api/v1/rewards" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hashrate-api/v1/rewards", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hashrate-api/v1/rewards");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/hashrate-api/v1/rewards",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Block-reward economics over a recent window of blocks: the total miner reward (subsidy + fees) in BTC, how much of it was transaction fees (total_fees_btc and fee_share_pct — fees matter more as the subsidy shrinks), and the per-block averages. Pass blocks (1-1000, default 144 ≈ one day). Live, cached ~60s.",
        "source": "mempool.space public API (v1/mining/reward-stats), keyless",
        "end_block": 953408,
        "start_block": 953265,
        "fee_share_pct": 0.98,
        "window_blocks": 144,
        "total_fees_btc": 4.46120723,
        "total_reward_btc": 454.46120723,
        "total_subsidy_btc": 450,
        "total_transactions": 609372,
        "avg_fees_per_block_btc": 0.03098061,
        "avg_reward_per_block_btc": 3.15598061
    },
    "meta": {
        "timestamp": "2026-06-12T19:35:55.836Z",
        "request_id": "bf148722-3181-41ee-a2de-bf80c62b7273"
    },
    "status": "ok",
    "message": "Reward stats retrieved successfully",
    "success": true
}