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/tac-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/tac-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tac-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tac-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/tac-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": "0xfe25370e72efb7a1426fda45ae3d573f5f2d5e9dda480bcc68389ab9b9fdc0da",
                "size": 2598,
                "miner": "0x5E24B0b8fCF7359E56F911C4A1279AFc20c59D4C",
                "height": 20568084,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 90000000,
                "timestamp": "2026-06-08T09:50:17.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "400000000000"
            },
            {
                "hash": "0xb58fba9f05fe12907252a1c11907084cf9ff9f839f5d3c7bb277eaa35c0fa3c8",
                "size": 2616,
                "miner": "0xA93208fEdD97DBd4224A3dF6039a6829B86F1a88",
                "height": 20568083,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 90000000,
                "timestamp": "2026-06-08T09:50:15.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "400000000000"
            },
            {
                "hash": "0xf8a9d502f92364c4184a84036dcc566efa0521bb3084a7957db22615fb2a3d32",
                "size": 2601,
                "miner": "0xCd4c8148eCEc39D785baa2E3298d53c2898c3417",
                "height": 20568082,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 90000000,
                "timestamp": "2026-06-08T09:50:14.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "400000000000"
            },
            {
                "hash": "0xada59e67567e3e468df4d3fa0b74374533e16fa248b33a79ab95940892acae5e",
                "size": 2616,
                "miner": "0x625351be78f6B53D1b47c67ab65529cf55F58CFf",
                "height": 20568081,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 90000000,
                "timestamp": "2026-06-08T09:50:12.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "400000000000"
            },
            {
                "hash": "0xe6abf61e940320901ac9cdb82c53a276003ce957d1d861633a4879f5c56dc4c9",
                "size": 2616,
                "miner": "0x72a90767227e6DA712Cf2214C3456B020938Af8E",
                "height": 20568080,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 90000000,
                "timestamp": "2026-06-08T09:50:10.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "400000000000"
            },
            {
                "hash": "0x7c666445118a54ce8b3ef4ae7bddd6b705b680d70c6ae4f97a2c322845cc3e74",
                "size": 2615,
                "miner": "0xa89ab3525EF3C1e7Bf273214cd7f6F447743ef0f",
                "height"
…