Vai al contenuto
GET /v1/blocks

Latest blocks

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/elastos-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/elastos-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/elastos-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/elastos-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/elastos-api/v1/blocks",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0xef3b072245e12d94af975ee9471e6381a79e07ce27934f759c352c6418e847a8",
                "size": 1845,
                "miner": "0x0170F9880cA46C41ff9eB6462f6758b65Bc3cD47",
                "height": 37061309,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 8000000,
                "timestamp": "2026-06-08T09:49:10.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x2c0c253c04748a39efd6cfbbf3d7b26ded40b517e68cd5758ed642cf041e0eda",
                "size": 1845,
                "miner": "0x7E319618d07F9Be1EcF7311FC6CA4F9F9Db23D85",
                "height": 37061308,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 8000000,
                "timestamp": "2026-06-08T09:49:05.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x586cc33ea9e7fb5e7a27b5b83d5ee9414a97bb54fe600ba0e44725afa1c4b857",
                "size": 1845,
                "miner": "0x7E319618d07F9Be1EcF7311FC6CA4F9F9Db23D85",
                "height": 37061307,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 8000000,
                "timestamp": "2026-06-08T09:49:00.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x1cf21e5c1647ff937ebd3e6282646d04d82c42ba417251268b151772cd799e0f",
                "size": 1845,
                "miner": "0x35ba08cd8E620d86d255893c3c65628513dABF65",
                "height": 37061306,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 8000000,
                "timestamp": "2026-06-08T09:48:50.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xdefbb32de2271911a4c7f0025cc7a55c92fff4556d3e2cdbebef26b4239a1bf3",
                "size": 1845,
                "miner": "0xBD681E5c8d7372f28653dB760a3AD0d21c5e9d40",
                "height": 37061305,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 8000000,
                "timestamp": "2026-06-08T09:48:45.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xc8b1631e0c7f6cf1b2ca7813b08313492d34cdebf64661ec810b265332fc1df2",
                "size": 1845,
                "miner": "0xB565fd493b87Ba9Efda5a7760b333B3C8E0bD2Dc",
                "height": 37061304,
                "gas_used": 0,
            
…