Aller au contenu
GET /v1/block

A block 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/ravencoin-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/ravencoin-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ravencoin-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ravencoin-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/ravencoin-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": {
        "hash": "0000000000002a2880cef1fd9f00f847fb14f103809672ba17fd620401ecd9e8",
        "time": "2026-06-09T23:59:55.000Z",
        "nonce": "0",
        "height": 4404000,
        "source": "Ravencoin (Blockbook)",
        "version": 805306368,
        "difficulty": 22882.22316938028,
        "size_bytes": 319,
        "merkle_root": "fb2954284eb9f71d03d2666a11f17482beb8a0552750622aac2c9a248264b6d4",
        "confirmations": 1372,
        "transaction_count": 1,
        "previous_block_hash": "000000000001e5d49ea6f76acb00fcc4a9de06741d6517abcf255a1e2d68bc5b"
    },
    "meta": {
        "timestamp": "2026-06-10T22:58:18.156Z",
        "request_id": "5cede15c-b24d-4822-8d42-e51e04954ce1"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}