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/metis-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/metis-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/metis-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/metis-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/metis-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": "0xf2970f72d838d8ed75e057c435f732e65f5aef7e38acfe38df82aa33d854d868",
                "size": 4246,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 22746750,
                "gas_used": 189933,
                "tx_count": 5,
                "gas_limit": 1100000000,
                "timestamp": "2026-06-08T18:26:44.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xac0dd2776de7bf44cb43ad14b171852035ba1c6d3b0ba5da5bb5bf63264474cf",
                "size": 1001,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 22746749,
                "gas_used": 29770,
                "tx_count": 1,
                "gas_limit": 1100000000,
                "timestamp": "2026-06-08T18:25:32.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xa28030bfc8bb7c10a48716dec31bdd815a966f0547dce363f1b2640dd7ad4a7e",
                "size": 3454,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 22746748,
                "gas_used": 173675,
                "tx_count": 1,
                "gas_limit": 1100000000,
                "timestamp": "2026-06-08T18:25:16.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x7386d7824f6df9aaffe5b29144721c7a50b24d390da7c635f32c071d52dbfc91",
                "size": 6724,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 22746747,
                "gas_used": 466491,
                "tx_count": 4,
                "gas_limit": 1100000000,
                "timestamp": "2026-06-08T18:25:00.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xda70ab6a26bb73d8e15e9f344224dfc3103179667fb4be7adbb27dc6a4ff4a47",
                "size": 1404,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 22746746,
                "gas_used": 103688,
                "tx_count": 1,
                "gas_limit": 1100000000,
                "timestamp": "2026-06-08T18:24:20.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xf3ee3a5a63ac3bd27f6856355d7ab82c886566bf134657e342609c4e5c5d29cb",
                "size": 1404,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 22746745,
    
…