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/degen-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/degen-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/degen-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/degen-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/degen-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": "0x8c4073d8c2c4eb3dca3140891f8e11e0a20450a08cfe291b5b038e16e798c688",
                "size": 1010,
                "miner": "0xA4b000000000000000000073657175656e636572",
                "height": 26843327,
                "reward": "0",
                "gas_used": 38013,
                "tx_count": 2,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T09:50:36.000000Z",
                "burnt_fees": "4561560000000000",
                "difficulty": "1",
                "base_fee_per_gas": "120000000000"
            },
            {
                "hash": "0x3de0426fdea90f9cf23365e2ad4019724318fa283bdd9a803af7638392097994",
                "size": 1010,
                "miner": "0xA4b000000000000000000073657175656e636572",
                "height": 26843326,
                "reward": "0",
                "gas_used": 38037,
                "tx_count": 2,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T09:50:35.000000Z",
                "burnt_fees": "4564440000000000",
                "difficulty": "1",
                "base_fee_per_gas": "120000000000"
            },
            {
                "hash": "0x50caef711881c901d8075b2b8cae6a51de6849c6619b0f9a76fc26aa24e45525",
                "size": 1319,
                "miner": "0xA4b000000000000000000073657175656e636572",
                "height": 26843325,
                "reward": "0",
                "gas_used": 76014,
                "tx_count": 3,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T09:50:35.000000Z",
                "burnt_fees": "9121680000000000",
                "difficulty": "1",
                "base_fee_per_gas": "120000000000"
            },
            {
                "hash": "0x09766456606d79296a6b5765843d9c0feb323ddf348d7a5e57cc8f90823100c5",
                "size": 1935,
                "miner": "0xA4b000000000000000000073657175656e636572",
                "height": 26843324,
                "reward": "0",
                "gas_used": 152040,
                "tx_count": 5,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T09:50:35.000000Z",
                "burnt_fees": "18244800000000000",
                "difficulty": "1",
                "base_fee_per_gas": "120000000000"
            },
            {
                "hash": "0x7a4c63a53ee2f69db7d9fd61522ca7fd4176d33abaac8a4ea11daaba601503c2",
                "size": 1319,
                "miner": "0xA4b000000000000000000073657175656e636572",
                "height": 26843323,
                "reward": "0",
                "gas_used": 81153,
                "tx_count": 3,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T09:50:35.000000Z",
                "burnt_fees": "9738360000000000",
                "difficulty": "1",
       
…