Aller au contenu
GET /v1/block

Block detail by height or hash

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/mempool-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/mempool-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/mempool-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/mempool-api/v1/block");
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/mempool-api/v1/block",
    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": {
        "block": {
            "bits": 386218132,
            "hash": "00000000000000000002a7c4c1e48d76c5a37902165a270156b7a8d72728a054",
            "size": 1634536,
            "nonce": 106861918,
            "height": 800000,
            "weight": 3992881,
            "version": 874340352,
            "tx_count": 3721,
            "timestamp": 1690168629,
            "difficulty": 53911173001054.586,
            "merkle_root": "91f01a00530c8c83617190048ea8b0814d506cf24dfdbcf8893f8f0cab7f0855",
            "previous_block": "000000000000000000012117ad9f72c1c0e42227c2d042dca23e6b96bd9fbb55"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:19:54.117Z",
        "request_id": "f8f068dd-483a-408f-84f8-925e24d8dfef"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}