Naar de inhoud
GET /v1/block

Block by height or latest

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/sophon-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "hash": "0xb1d6bcaf2baa982e9f41e635e9ca3041a2eee0bf49079811e4c275212496517a",
        "miner": "0x0000000000000000000000000000000000000000",
        "number": 5000000,
        "gas_used": 620195,
        "gas_limit": 1125899906842624,
        "timestamp": 1739687366,
        "size_bytes": 0,
        "parent_hash": "0x8ab69af6126406e0fc03f29b51e9276e2b0ffb6c23a9ece0a28355f29d871acf",
        "timestamp_iso": "2025-02-16T06:29:26.000Z",
        "transaction_count": 5,
        "base_fee_per_gas_wei": "2070973792921"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:29.572Z",
        "request_id": "9d599a81-3786-4060-bd17-e15f513bd4b3"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}