Vai al contenuto
GET /v1/block

A block 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/electroneum-api

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/electroneum-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/electroneum-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/electroneum-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/electroneum-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": "0x72473827a65eefad55cabc45f9775cb617ff82684e0edd4312d1d8760996dcc7",
            "size": 3953,
            "miner": "0x135ec2bc4C04935CCd53967a072562120E4A3f92",
            "height": 14158506,
            "reward": "483000000000000",
            "gas_used": 483000,
            "tx_count": 23,
            "gas_limit": 30000000,
            "timestamp": "2026-06-08T06:25:29.000000Z",
            "burnt_fees": "3381000",
            "difficulty": "1",
            "base_fee_per_gas": "7"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:49:17.882Z",
        "request_id": "4b3b64eb-d0ed-49e3-8069-1f4d7ae67a38"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}