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

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/manta-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/manta-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/manta-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/manta-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": "0xaed3a0236dfc064b117ada85673093a79198255f1701f2eb1120dc4fd9bfb408",
            "size": 2297,
            "miner": "0x4200000000000000000000000000000000000011",
            "height": 8666420,
            "gas_used": 6907197,
            "tx_count": 6,
            "gas_limit": 50000000,
            "timestamp": "2026-06-08T03:09:19.000000Z",
            "burnt_fees": "2852672361",
            "difficulty": "0",
            "base_fee_per_gas": "413"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T09:50:35.318Z",
        "request_id": "68a7810a-79f2-41d4-b50f-a0270c811baf"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}