Aller au contenu
GET /v1/blocks

Latest 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/shimmer-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/shimmer-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/shimmer-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/shimmer-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/shimmer-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": "0x0f4047b24db11f3b47c3bbef346cce9891274b8508d79d0e1caf0fb405a11087",
                "size": 2965,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 7973771,
                "gas_used": 220044,
                "tx_count": 8,
                "gas_limit": 1000000000,
                "timestamp": "2026-06-08T09:47:30.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xad3ccd290d75296f6d85196695cc560cdc351746dd5f31c940a490ae289bb8cb",
                "size": 822,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 7973770,
                "gas_used": 27489,
                "tx_count": 1,
                "gas_limit": 1000000000,
                "timestamp": "2026-06-08T09:47:30.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x2fdc7476bf4fb972094e0874543b7772accd7a1929180b831a79ffc9ee418fb3",
                "size": 3577,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 7973769,
                "gas_used": 278281,
                "tx_count": 10,
                "gas_limit": 1000000000,
                "timestamp": "2026-06-08T09:42:35.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x96c3295a95a1341a2b031a86bad7f203e373ddbf646803bd844059cc00f5683e",
                "size": 822,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 7973768,
                "gas_used": 27525,
                "tx_count": 1,
                "gas_limit": 1000000000,
                "timestamp": "2026-06-08T09:42:35.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xe1d40d2d19d79fb1c5f7502ff8e50c69fb5a1c871dba61f6247543c1621f62ad",
                "size": 2658,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 7973767,
                "gas_used": 192615,
                "tx_count": 7,
                "gas_limit": 1000000000,
                "timestamp": "2026-06-08T09:37:40.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x5b8f8fe7494f3ad3fb09d79755ee82636bb0fa8d8ed407d845a10f89d5ff05a7",
                "size": 1435,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 7973766,
            
…