/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/ronin-api/v1/blocks" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ronin-api/v1/blocks", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ronin-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/ronin-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": "0x006b497fe7cba6c50eef45278d845eea152b1522363024bf3bda14b1532821a1",
"size": 2660,
"miner": "0x4200000000000000000000000000000000000011",
"height": 56721718,
"gas_used": 10281525,
"tx_count": 4,
"gas_limit": 60000000,
"timestamp": "2026-06-08T09:50:23.000000Z",
"burnt_fees": "205630500000000000",
"difficulty": "0",
"base_fee_per_gas": "20000000000"
},
{
"hash": "0xbea38fa6ab96fba4ddd7d17a03b9fb0e92ff0cddee85c8375240e9d60a4ba306",
"size": 1074,
"miner": "0x4200000000000000000000000000000000000011",
"height": 56721717,
"gas_used": 167328,
"tx_count": 2,
"gas_limit": 60000000,
"timestamp": "2026-06-08T09:50:21.000000Z",
"burnt_fees": "3346560000000000",
"difficulty": "0",
"base_fee_per_gas": "20000000000"
},
{
"hash": "0xdfebe4d868d1e0363386ed76709782e79f556189737ecb784886d83e722f8adb",
"size": 2948,
"miner": "0x4200000000000000000000000000000000000011",
"height": 56721716,
"gas_used": 317057,
"tx_count": 3,
"gas_limit": 60000000,
"timestamp": "2026-06-08T09:50:19.000000Z",
"burnt_fees": "6341140000000000",
"difficulty": "0",
"base_fee_per_gas": "20000000000"
},
{
"hash": "0xa7dabdf83404c33955fd1de2b12bcc555531b74e6226575c7ac7d0976e765df6",
"size": 3494,
"miner": "0x4200000000000000000000000000000000000011",
"height": 56721715,
"gas_used": 653310,
"tx_count": 4,
"gas_limit": 60000000,
"timestamp": "2026-06-08T09:50:17.000000Z",
"burnt_fees": "13066200000000000",
"difficulty": "0",
"base_fee_per_gas": "20000000000"
},
{
"hash": "0x831c1711cbfa38b81fdc3022473b1119b88226cb6d6887862626adcb846d8230",
"size": 3238,
"miner": "0x4200000000000000000000000000000000000011",
"height": 56721714,
"gas_used": 420057,
"tx_count": 4,
"gas_limit": 60000000,
"timestamp": "2026-06-08T09:50:15.000000Z",
"burnt_fees": "8401140000000000",
"difficulty": "0",
"base_fee_per_gas": "20000000000"
},
{
"hash": "0x426653f8820d244d99804de30ae50c4468721b251bcaf5c85fcef39c69e3f8cf",
"size": 6
…