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

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/funki-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/funki-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/funki-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/funki-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": "0x5239147aba58d96e62427b5bccbbd085279d784d7a734849176cc6bbd9bd4d31",
        "chain": "Funki",
        "miner": "0x4200000000000000000000000000000000000011",
        "number": 5000000,
        "gas_used": 43842,
        "tx_count": 1,
        "gas_limit": 30000000,
        "timestamp": 1731211095,
        "size_bytes": 839,
        "parent_hash": "0x607e5866f3717cfe3bd9d98eb775ee73b4b20dca7136fc42a55826edb7da1403",
        "timestamp_iso": "2024-11-10T03:58:15.000Z"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:16.678Z",
        "request_id": "106066c7-01c7-4a5e-904a-515bea1f7528"
    },
    "status": "ok",
    "message": "Funki block retrieved",
    "success": true
}