/v1/block
A block by height or hash
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/kcc-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/kcc-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/kcc-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/kcc-api/v1/block",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"block": {
"hash": "0xa3759d7945888300a383de55c37099b27ef5bee6fd9805c765353defa33141b3",
"size": 1290,
"miner": "0xb90Cced3FAE6FA08b70EEaaf9EC2aD650f2c1aB5",
"height": 52783788,
"gas_used": 152262,
"tx_count": 2,
"gas_limit": 20000000,
"timestamp": "2026-06-08T05:37:06.000000Z",
"burnt_fees": "0",
"difficulty": "2",
"base_fee_per_gas": null
}
},
"meta": {
"timestamp": "2026-06-08T09:49:36.526Z",
"request_id": "31b74f6d-eda4-4c00-8bcb-304b59e9a2df"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}