Vai al contenuto
GET /v1/block

Block by number (or latest)

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "hash": "0x21fef196b26aa9c3363d87f6cca01acca742d409550926d49a49332a68ba8c83",
        "chain": "WEMIX",
        "miner": "0xc08b5179ce711bde566b4762e83fe98bdb39d5eb",
        "number": 5000000,
        "gas_used": 119290,
        "tx_count": 1,
        "gas_limit": 105000000,
        "timestamp": 1671234808,
        "size_bytes": 4264,
        "parent_hash": "0xe489c167193240db151d468bdc8d419c30059ecb6e50adb8e0258ebecc0e19e6",
        "timestamp_iso": "2022-12-16T23:53:28.000Z"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:05.912Z",
        "request_id": "c03a4c2e-0726-4ae9-8624-abdb015064f7"
    },
    "status": "ok",
    "message": "WEMIX block retrieved",
    "success": true
}