/v1/blocks
Latest blocks
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/hemi-api/v1/blocks" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hemi-api/v1/blocks", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hemi-api/v1/blocks");
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/hemi-api/v1/blocks",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"count": 50,
"blocks": [
{
"hash": "0x332e79ea0ea0e5291cba0b014c390253e1f643b99c2fb5b6894a21872c548b2c",
"size": 896,
"miner": "0x4200000000000000000000000000000000000011",
"height": 4587128,
"gas_used": 54544,
"tx_count": 1,
"gas_limit": 30000000,
"timestamp": "2026-06-08T09:50:47.000000Z",
"burnt_fees": "13745088",
"difficulty": "0",
"base_fee_per_gas": "252"
},
{
"hash": "0xa656c0643e9ceab93cb6206685c85f0a5e140e36934ef534629ff4ffd25efca8",
"size": 896,
"miner": "0x4200000000000000000000000000000000000011",
"height": 4587127,
"gas_used": 54544,
"tx_count": 1,
"gas_limit": 30000000,
"timestamp": "2026-06-08T09:50:35.000000Z",
"burnt_fees": "13745088",
"difficulty": "0",
"base_fee_per_gas": "252"
},
{
"hash": "0xd0874874aaec7be1c7aa6be5ea90dc177e0e1ae885c425a1525f874e2a85d896",
"size": 896,
"miner": "0x4200000000000000000000000000000000000011",
"height": 4587126,
"gas_used": 54544,
"tx_count": 1,
"gas_limit": 30000000,
"timestamp": "2026-06-08T09:50:23.000000Z",
"burnt_fees": "13745088",
"difficulty": "0",
"base_fee_per_gas": "252"
},
{
"hash": "0xcc6cbcc3407b685bfaa11463edce033f52506c3e7a1d55d9ab170486a2939d56",
"size": 2075,
"miner": "0x4200000000000000000000000000000000000011",
"height": 4587125,
"gas_used": 173448,
"tx_count": 2,
"gas_limit": 30000000,
"timestamp": "2026-06-08T09:50:11.000000Z",
"burnt_fees": "43708896",
"difficulty": "0",
"base_fee_per_gas": "252"
},
{
"hash": "0x5fff2f8cadb855173f5cb7d64a7c2b3cc0dccf68038ced0f0d51b811b8e37223",
"size": 2719,
"miner": "0x4200000000000000000000000000000000000011",
"height": 4587124,
"gas_used": 480983,
"tx_count": 2,
"gas_limit": 30000000,
"timestamp": "2026-06-08T09:49:59.000000Z",
"burnt_fees": "121207716",
"difficulty": "0",
"base_fee_per_gas": "252"
},
{
"hash": "0xe29ee5cdb068d0582d801e4f022e532b1fceb75080466064299af71471e39033",
"size": 896,
"miner": "0x4200000000000000000000000000000000000011",
"hei
…