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/lukso-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/lukso-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lukso-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lukso-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/lukso-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": "0x3f315edb94446bf9a08c6a2072a6858a1a90d27e9a1f420731f64b4eb0c12192",
                "size": 1204,
                "miner": "0xa5b37D755B97C272853b9726C905414706A0553a",
                "height": 7709795,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 42000000,
                "timestamp": "2026-06-08T18:25:48.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "9"
            },
            {
                "hash": "0x5a60f9511c8017ac1b4bc606db5c3a3bd5cb8dd17519e1fa1173a675b8944cc2",
                "size": 1370,
                "miner": "0x9F49a95b0c3c9e2A6c77a16C177928294c0F6F04",
                "height": 7709794,
                "gas_used": 37976217,
                "tx_count": 1,
                "gas_limit": 42000000,
                "timestamp": "2026-06-08T18:25:36.000000Z",
                "burnt_fees": "303809736",
                "difficulty": "0",
                "base_fee_per_gas": "8"
            },
            {
                "hash": "0x7f9c46f67764573b306401c1c55354729d8092cc811d43cab46cbccde559981d",
                "size": 1189,
                "miner": "0x9F49a95b0c3c9e2A6c77a16C177928294c0F6F04",
                "height": 7709793,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 42000000,
                "timestamp": "2026-06-08T18:25:12.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "9"
            },
            {
                "hash": "0x90f25e7ff14cf2f28e20f8b6a5335903bf0118b3aea4cd66a92c4d7a591ec73e",
                "size": 1375,
                "miner": "0x9F49a95b0c3c9e2A6c77a16C177928294c0F6F04",
                "height": 7709792,
                "gas_used": 39777723,
                "tx_count": 1,
                "gas_limit": 42000000,
                "timestamp": "2026-06-08T18:25:00.000000Z",
                "burnt_fees": "318221784",
                "difficulty": "0",
                "base_fee_per_gas": "8"
            },
            {
                "hash": "0x49bde6e070b8f28a1c4cb1f71cea9943e41c5078dd9aae9d5dbbd2f2f51a7388",
                "size": 1202,
                "miner": "0xa5b37D755B97C272853b9726C905414706A0553a",
                "height": 7709791,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 42000000,
                "timestamp": "2026-06-08T18:24:48.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "9"
            },
            {
                "hash": "0xaa4043a1269875061f3bca05cbdf11bcf2a1f0b5601004c26ba18ef51f5c627a",
                "size": 1383,
                "miner": "0xAdB4A636e3cc506667682337d37a9b1A1222a551",
                "height": 7709790,
                "ga
…