Zum Inhalt springen
GET /v1/block

A single block by number or hash

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/nervos-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}