Vai al contenuto
GET /v1/block

Block detail by height or hash

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "block": {
            "hash": "0x3f08ebe3b60978faefce367e253c7f609c288465008a6cd49123ae2bc7e46600",
            "size": 1202,
            "miner": "0xa5b37D755B97C272853b9726C905414706A0553a",
            "height": 7708000,
            "gas_used": 0,
            "tx_count": 0,
            "gas_limit": 42000000,
            "timestamp": "2026-06-08T12:04:36.000000Z",
            "burnt_fees": "0",
            "difficulty": "0",
            "base_fee_per_gas": "8"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:56.233Z",
        "request_id": "1e2da798-0140-4d12-b155-0176e2c44bd3"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}