Vai al contenuto
GET /v1/rewards

Block-reward economics over the last N blocks

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/mining-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}