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/karak-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/karak-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/karak-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/karak-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/karak-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": "0x7b78a617d34e8996e6d3f498d7418e41ce33be73ae08a54ecdcf73a810d449c6",
                "size": 904,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 38773871,
                "gas_used": 71914,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T18:25:57.000000Z",
                "burnt_fees": "18122328",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x6ba7ac681b2993ff4392139f18b6c1f0191d2aa58e6f44d7c30be33973b2c1c8",
                "size": 904,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 38773870,
                "gas_used": 70028,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T18:25:55.000000Z",
                "burnt_fees": "17647056",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x2ec4a07cb5e78a39415c0420eb61700bcf2b0e0c0a875ba564523733c051745a",
                "size": 903,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 38773869,
                "gas_used": 54814,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T18:25:53.000000Z",
                "burnt_fees": "13813128",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x2c30a8f7edb8497f29f0895d8dc635ec6b898644931e29efeeda5978f8d7400c",
                "size": 903,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 38773868,
                "gas_used": 54814,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T18:25:51.000000Z",
                "burnt_fees": "13813128",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x1181841675cedbf2779c1805c3030b5dae28b26fb42cd59a82a94b80842e3d4a",
                "size": 903,
                "miner": "0x4200000000000000000000000000000000000011",
                "height": 38773867,
                "gas_used": 54814,
                "tx_count": 1,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T18:25:49.000000Z",
                "burnt_fees": "13813128",
                "difficulty": "0",
                "base_fee_per_gas": "252"
            },
            {
                "hash": "0x0812ba676cf990f73d8f72c7c8267cf4f898576b7b0c822fab9dfb4aa0d07221",
                "size": 903,
                "miner": "0x4200000000000000000000000000000000000011",
                "hei
…