/v1/block
Block detail by height or hash
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/rari-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/rari-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/rari-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/rari-api/v1/block",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"block": {
"hash": "0x273f5be5903c9ef24aee4af4105e8da89c251e886ae958b672ca30eecb604271",
"size": 1007,
"miner": "0xA4b000000000000000000073657175656e636572",
"height": 4027000,
"gas_used": 38307,
"tx_count": 2,
"gas_limit": 1125899906842624,
"timestamp": "2026-06-08T07:57:21.000000Z",
"burnt_fees": "5746050000000",
"difficulty": "1",
"base_fee_per_gas": "150000000"
}
},
"meta": {
"timestamp": "2026-06-08T18:26:08.247Z",
"request_id": "22f31df4-fe1c-49b1-8c9f-6c7e97f7daab"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}