Ir al contenido
GET /v1/rewards

Block-reward economics over the last N blocks

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/mining-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}