/v1/block
Block detail by height or hash
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/japanopenchain-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/japanopenchain-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/japanopenchain-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/japanopenchain-api/v1/block",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"block": {
"hash": "0x96c905675df34e70744f69544873d0b686e385b0cfdc74673a31e1f973022b15",
"size": 731,
"miner": "0xB641f142049215EAc3BE10A6d2b7F2f674270130",
"height": 24260000,
"gas_used": 21000,
"tx_count": 1,
"gas_limit": 470000000,
"timestamp": "2026-06-08T11:56:44.000000Z",
"burnt_fees": "147000",
"difficulty": "2",
"base_fee_per_gas": "7"
}
},
"meta": {
"timestamp": "2026-06-08T18:25:26.214Z",
"request_id": "20e9264d-1717-4d4d-ad0c-6e639c1d7e69"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}