/v1/block
Block by height or latest
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/boba-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/boba-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/boba-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/boba-api/v1/block",
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": {
"hash": "0x42ceaafae26c41d6c5c715f2cc85e610737913d8e32e2482bce442aa75444113",
"miner": "0x4200000000000000000000000000000000000011",
"number": 20000000,
"gas_used": 43851,
"gas_limit": 30000000,
"timestamp": 1751004841,
"size_bytes": 849,
"parent_hash": "0x6fd3ef22244ccd60306e8a7c8575a425306f153d668da6be23038715fca08987",
"timestamp_iso": "2025-06-27T06:14:01.000Z",
"transaction_count": 1,
"base_fee_per_gas_wei": "252"
},
"meta": {
"timestamp": "2026-06-15T20:41:03.807Z",
"request_id": "a4315d84-e123-4153-8c9d-aa5fac35fede"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}