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

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/flare-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/flare-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/flare-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/flare-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": "0x6b9ef2569333a8aa228680771041952ba7f82283468f7971dcef8d8d0f6e0ee1",
            "size": 5043,
            "miner": "0x0100000000000000000000000000000000000000",
            "height": 62490000,
            "gas_used": 1617193,
            "tx_count": 14,
            "gas_limit": 20019540,
            "timestamp": "2026-06-08T07:08:50.000000Z",
            "burnt_fees": "131122849380360",
            "difficulty": "1",
            "base_fee_per_gas": "81080520"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:26:37.161Z",
        "request_id": "68692dd9-1a6c-4777-9e1c-4cd5b6375ac6"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}