/v1/rewards
Block-reward economics over the last N blocks
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}