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/astar-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/astar-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/astar-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/astar-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/astar-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": "0xe6ad77e0dc3f1cd826e6ebdea11fd75254f057e7ff4f2ac0cea986151d055d99",
                "size": 514,
                "miner": "0xbECb591A0953818817BF2bD5ae35377692DCbf32",
                "height": 13620266,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T18:26:00.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "779371350051"
            },
            {
                "hash": "0xf9829f750a869731d5698081e12650d930c30ca01cbce67fdf2f4fe9f5730b11",
                "size": 514,
                "miner": "0x43aB6285DEcab67802086abD369E5E67C2B5cDbc",
                "height": 13620265,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T18:25:54.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "779371350051"
            },
            {
                "hash": "0x6793c37fb78b4234ef72ee6057d6acce70c95dafa0a3d1f9376fc541a254f924",
                "size": 514,
                "miner": "0x3f290a113faB7A1801517ce3b6975B86B282fd90",
                "height": 13620264,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T18:25:48.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "779371350051"
            },
            {
                "hash": "0x19388d2fcbbf35f6eea9c5e72aec6a24ffe27215e8cebbe130a06311a80c8721",
                "size": 514,
                "miner": "0x60B3539fEb01350485750213a29a2346cdB00126",
                "height": 13620263,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T18:25:42.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "779371350051"
            },
            {
                "hash": "0xb2618cdfbe9e2177d4786fadc1972111c3579437ddf3aa6a6555b22b6de01ccc",
                "size": 514,
                "miner": "0x675722338829A5d7Dc8793dF7c012573B5a5C6C4",
                "height": 13620261,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 60000000,
                "timestamp": "2026-06-08T18:25:30.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "779371350051"
            },
            {
                "hash": "0xa985a063f3aef6fea82edb23b5ddb1896edb0413c1ddb929a6a3a6c30ce60c6e",
                "size": 514,
                "miner": "0xbF271051433E709a9d977f361eb04174fD01c568",
                "height": 1362
…