Aller au contenu
GET /v1/halving

Countdown to the next block-subsidy halving

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/hashrate-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/hashrate-api/v1/halving" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hashrate-api/v1/halving", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hashrate-api/v1/halving");
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/halving",
    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": {
        "note": "The countdown to Bitcoin's next block-subsidy halving. Every 210,000 blocks (~4 years) the reward miners get for each block halves, tightening Bitcoin's issuance — this gives the current block height, the current subsidy in BTC, the next halving's block height, and how many blocks (and roughly how many days, at ~10 min/block) remain. estimated_days_remaining is an approximation from the fixed block target. Live, cached ~60s.",
        "source": "mempool.space public API (blocks/tip/height) + Bitcoin consensus, keyless",
        "progress_pct": 54,
        "current_height": 953408,
        "halvings_so_far": 4,
        "blocks_remaining": 96592,
        "next_subsidy_btc": 1.5625,
        "next_halving_height": 1050000,
        "next_halving_number": 5,
        "estimated_halving_date": "2028-04-13T14:15:55.720Z",
        "estimated_days_remaining": 670.8,
        "current_block_subsidy_btc": 3.125
    },
    "meta": {
        "timestamp": "2026-06-12T19:35:55.720Z",
        "request_id": "4016d40b-ebb5-4c14-8228-aecd405c0145"
    },
    "status": "ok",
    "message": "Halving retrieved successfully",
    "success": true
}