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/qblockchain-api

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/qblockchain-api/v1/blocks" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/qblockchain-api/v1/blocks", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/qblockchain-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/qblockchain-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": "0xc214118513b3f5e026faae8190d434c0bce833648e72a2a15b3886099ec7a39e",
                "size": 610,
                "miner": "0x207157E38B380AF3890D88E78F851dfFb15419AA",
                "height": 26518068,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 16000000,
                "timestamp": "2026-06-08T09:49:06.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xca35ce2dac43d82d9f05e3ad8f71f2631f81f62742e29b1e3a6c39546ce9f27a",
                "size": 610,
                "miner": "0x004bAd8901038cC780F331de3B597Fc4a81f4357",
                "height": 26518067,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 16000000,
                "timestamp": "2026-06-08T09:49:01.000000Z",
                "burnt_fees": "0",
                "difficulty": "1",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xa3eb9be0854f1599ea23fbf3ead41813d4dc456566bbbb4cae4bff53178b88ee",
                "size": 610,
                "miner": "0x101Bf5CefC653A663311368d68cB79FAFB76A25A",
                "height": 26518066,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 16000000,
                "timestamp": "2026-06-08T09:48:56.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x63f66605a0331ee0556d37a3639747367537ad213edd58e34ba82b61c978cdb6",
                "size": 610,
                "miner": "0xc38fA1d5e19a5dB2628E1323c30c784C923F3d1C",
                "height": 26518065,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 16000000,
                "timestamp": "2026-06-08T09:48:51.000000Z",
                "burnt_fees": "0",
                "difficulty": "1",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x3a036809029fead37cceeb20315107068565ad885b9d22c9262acbda21c096f2",
                "size": 610,
                "miner": "0xcb1BDEa3A831C0B1C5371206a082Df2e37d7A4DF",
                "height": 26518064,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 16000000,
                "timestamp": "2026-06-08T09:48:46.000000Z",
                "burnt_fees": "0",
                "difficulty": "1",
                "base_fee_per_gas": null
            },
            {
                "hash": "0x88990b5b5961550a363ee686a3608ec2430788f1c8f04fc1807ea86c5d969f74",
                "size": 610,
                "miner": "0xd788d4f0B5388A8f119f317cdb3CDE6cF88c3579",
                "height": 26518063,
                "gas_used": 0,
             
…