Naar de inhoud
GET /v1/block

A single block by number or hash

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/nervos-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/nervos-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/nervos-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/nervos-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/nervos-api/v1/block",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "epoch": 14353,
        "miner": "ckb1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq0tpsqq08mkay9ewrfrdwlcghv62qw704s93hhsj",
        "number": 19559000,
        "source": "Nervos CKB",
        "timestamp": "2026-06-10T14:11:17.272Z",
        "block_hash": "0x1325ea4ccae7b795c5bfab4fa69f2b77428c4a45cf98a4d22836e71e21406c03",
        "difficulty": "935293536651311521",
        "reward_ckb": 778.6228195,
        "transactions_count": 2
    },
    "meta": {
        "timestamp": "2026-06-10T22:58:25.048Z",
        "request_id": "89026ff8-7f65-4c2e-a05b-2965557d04fd"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}