/v1/block
Block by number (latest if omitted)
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/fraxtal-api/v1/block" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fraxtal-api/v1/block", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fraxtal-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/fraxtal-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": "0x1bcb40b7723221eb26c371ed6c9cdecb877d5620498085c6834a1d315bf974d6",
"miner": "0x4200000000000000000000000000000000000011",
"number": 37355691,
"gas_used": 48367,
"gas_limit": 30000000,
"timestamp": 1781522093,
"size_bytes": 897,
"parent_hash": "0x47ddb01fd0bb4d7eb52f3028b056cc52d682aa1323dcd9087b8c6b8ef7a26b91",
"transaction_count": 1,
"base_fee_per_gas_wei": "254"
},
"meta": {
"timestamp": "2026-06-15T11:14:53.916Z",
"request_id": "6d7b437f-7730-4b92-8ddd-006eede0a826"
},
"status": "ok",
"message": "Block retrieved successfully",
"success": true
}