/v1/blocks
Most recent 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/japanopenchain-api/v1/blocks" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/japanopenchain-api/v1/blocks", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/japanopenchain-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/japanopenchain-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": "0x352617223e920b0e89af64fbc4ee1c0b33322c72176533a350e0db02427c8a85",
"size": 731,
"miner": "0x44f61F79ddc9DFA7428614A95202FBF448F81E36",
"height": 24264658,
"gas_used": 21000,
"tx_count": 1,
"gas_limit": 470000000,
"timestamp": "2026-06-08T18:25:21.000000Z",
"burnt_fees": "147000",
"difficulty": "2",
"base_fee_per_gas": "7"
},
{
"hash": "0xe4dc047de19cce1d994442b6207a7ad6cbd2a130e29477a90fcd117753f4aafe",
"size": 731,
"miner": "0x41Bcba80338FDc3531434861A2750e842d6CD1E5",
"height": 24264657,
"gas_used": 21000,
"tx_count": 1,
"gas_limit": 470000000,
"timestamp": "2026-06-08T18:25:16.000000Z",
"burnt_fees": "147000",
"difficulty": "2",
"base_fee_per_gas": "7"
},
{
"hash": "0x565d5b8767cc4805e7358dd4a16b7ea1ff577e7c3d97bed4ec2cff664e278b2a",
"size": 731,
"miner": "0x3dFD1bb2bF608b88549192148FFfa729B2D3f525",
"height": 24264656,
"gas_used": 21000,
"tx_count": 1,
"gas_limit": 470000000,
"timestamp": "2026-06-08T18:25:11.000000Z",
"burnt_fees": "147000",
"difficulty": "2",
"base_fee_per_gas": "7"
},
{
"hash": "0xc91fb9ccead7ab7c97f8289905710f6407c4327f62d8749a0fd4d02d6d093bff",
"size": 731,
"miner": "0x4B21d8b8ED2B54CA0A6482D7B2EA12c91ce7290d",
"height": 24264655,
"gas_used": 21000,
"tx_count": 1,
"gas_limit": 470000000,
"timestamp": "2026-06-08T18:25:06.000000Z",
"burnt_fees": "147000",
"difficulty": "1",
"base_fee_per_gas": "7"
},
{
"hash": "0x563e06457451d2319a0393bda20a4925c07c5a98b91a1f81eebe3a5a1a33dfa1",
"size": 731,
"miner": "0x382DcA1115d446F3988Ea3Ae684724f9610D81C7",
"height": 24264654,
"gas_used": 21000,
"tx_count": 1,
"gas_limit": 470000000,
"timestamp": "2026-06-08T18:25:01.000000Z",
"burnt_fees": "147000",
"difficulty": "2",
"base_fee_per_gas": "7"
},
{
"hash": "0xab08ed0626dca8c35b3b0e1ebf192ca8ec7a7456fb815ee5b21a6a9afd46afa0",
"size": 731,
"miner": "0x356c5e22E4a5E042cE81A4C6538Ae9BBd0F06F3F",
"height": 24264653,
…