Zum Inhalt springen
GET /v1/rewards

Block-reward economics over the last N blocks

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/mining-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/mining-api/v1/rewards" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/mining-api/v1/rewards", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/mining-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/mining-api/v1/rewards",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "blocks": 144,
        "source": "mempool.space",
        "total_tx": 666658,
        "end_block": 953111,
        "avg_fee_btc": 0.02290523,
        "start_block": 952968,
        "fee_share_pct": 0.7276,
        "total_fee_btc": 3.29835244,
        "avg_reward_btc": 3.14790523,
        "total_reward_btc": 453.29835244
    },
    "meta": {
        "timestamp": "2026-06-10T14:01:29.847Z",
        "request_id": "ad616be4-b07c-40c2-b497-52dcd119a999"
    },
    "status": "ok",
    "message": "Rewards retrieved successfully",
    "success": true
}