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/zora-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/zora-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/zora-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/zora-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/zora-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": "0x03a75d363d65bd2edb6ba995417626abf24ba061cd3986ea07cd26ca88ef815d",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 47109170,
                "gas_used": 46230,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:49:39.000000Z",
                "burnt_fees": "11649960",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x59ff0ac800ffe90b33b7360574349db6fa77efd6e76617cc7139216d159beb3d",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 47109169,
                "gas_used": 46230,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:49:37.000000Z",
                "burnt_fees": "11649960",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x898c78952d51d23b7c36fd565996de952c2608962774dffb5ef8ac6e9f03132f",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 47109168,
                "gas_used": 46230,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:49:35.000000Z",
                "burnt_fees": "11649960",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0xe06643ed98b6866d589f550f220ecffcbe1560629420655951c81fa71a0ee5ac",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 47109167,
                "gas_used": 46230,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:49:33.000000Z",
                "burnt_fees": "11649960",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x65b3fa80df3cb30f43d56f1efee4a3844d5aca4a530b5ca8f44a23eb53d86888",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 47109166,
                "gas_used": 57418,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:49:31.000000Z",
                "burnt_fees": "14469336",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x9ab765315c6d6d1defda81ca9a88af2b3858208a7f0160e3a086302b3958a957",
                "size": 907,
                "miner": "0x4200000000000000000000000000000000000011",
                "hei
…