Aller au contenu
GET /v1/blocks

Most recent blocks

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/numbers-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/numbers-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/numbers-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/numbers-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/numbers-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": "0xeebe6c86c11c1982c06826b42c8267e2e22583446d743697650039f004a296e3",
                "size": 1808,
                "miner": "0xe49a1220eE09Fbf0D25CA9e3BB8D5fD356Fc67FF",
                "height": 1301770,
                "gas_used": 105538,
                "tx_count": 1,
                "gas_limit": 20000000,
                "timestamp": "2026-06-08T18:15:36.000000Z",
                "burnt_fees": "79153500000000000",
                "difficulty": "1",
                "base_fee_per_gas": "750000000000"
            },
            {
                "hash": "0x7104acc37c75ca213ea0b4d4d77c46b89658db5c75999e90c81c916804c87c65",
                "size": 1808,
                "miner": "0xe49a1220eE09Fbf0D25CA9e3BB8D5fD356Fc67FF",
                "height": 1301769,
                "gas_used": 105538,
                "tx_count": 1,
                "gas_limit": 20000000,
                "timestamp": "2026-06-08T18:15:28.000000Z",
                "burnt_fees": "79153500000000000",
                "difficulty": "1",
                "base_fee_per_gas": "750000000000"
            },
            {
                "hash": "0xe99f6e5291226f5c06809d16789bdf66271000bd890a55190509d43a3fc3b4ef",
                "size": 943,
                "miner": "0xe49a1220eE09Fbf0D25CA9e3BB8D5fD356Fc67FF",
                "height": 1301768,
                "gas_used": 249612,
                "tx_count": 1,
                "gas_limit": 20000000,
                "timestamp": "2026-06-08T18:04:14.000000Z",
                "burnt_fees": "187209000000000000",
                "difficulty": "1",
                "base_fee_per_gas": "750000000000"
            },
            {
                "hash": "0x4ab6586ce2d491a4b04f159bf0aa50e31ea6339bb460d4504f3261502b9a44c3",
                "size": 943,
                "miner": "0xe49a1220eE09Fbf0D25CA9e3BB8D5fD356Fc67FF",
                "height": 1301767,
                "gas_used": 249612,
                "tx_count": 1,
                "gas_limit": 20000000,
                "timestamp": "2026-06-08T18:04:06.000000Z",
                "burnt_fees": "187209000000000000",
                "difficulty": "1",
                "base_fee_per_gas": "750000000000"
            },
            {
                "hash": "0xb093532c520d691d4226ae5a5807bfa1c4afc496d05ebf4b309f4b50f41a5e40",
                "size": 943,
                "miner": "0xe49a1220eE09Fbf0D25CA9e3BB8D5fD356Fc67FF",
                "height": 1301766,
                "gas_used": 249612,
                "tx_count": 1,
                "gas_limit": 20000000,
                "timestamp": "2026-06-08T18:03:56.000000Z",
                "burnt_fees": "187209000000000000",
                "difficulty": "1",
                "base_fee_per_gas": "750000000000"
            },
            {
                "hash": "0x778e29bcc1643477475c58c6caf4f2c8b21fc44c7ad0bc176c535e83d7da0397",
                "size": 9
…