/v1/block
A block 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/etc-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/etc-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/etc-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/etc-api/v1/block",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"block": {
"hash": "0x5377d1f26947f4dd984e0c1cef166712f5c5611f57e5143a4bfc46c8291a4c82",
"size": 763,
"miner": "0x5253b33c1313a4449Bc5304A9C55b4CC2Bdf2872",
"height": 24714836,
"reward": "2049304100000000000",
"gas_used": 42000,
"tx_count": 2,
"gas_limit": 8000000,
"timestamp": "2026-06-08T00:46:56.000000Z",
"burnt_fees": "0",
"difficulty": "2690672224353474",
"base_fee_per_gas": null
}
},
"meta": {
"timestamp": "2026-06-08T01:18:16.200Z",
"request_id": "cf388da4-8a89-4d0a-a5eb-cac372455cd0"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}