Zum Inhalt springen
GET /v1/block

Block by height or latest

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/morph-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "hash": "0x8afdde20ff59c6988be498a630c65fbfb3b58a5325c0e039336c41c0b2a2d81c",
        "miner": "0x0000000000000000000000000000000000000000",
        "number": 5000000,
        "gas_used": 21000,
        "gas_limit": 30000000,
        "timestamp": 1739351043,
        "size_bytes": 676,
        "parent_hash": "0x8fb9adfe1076ce45d7c7d0ef91307c8b7aaffac2dfe6e1c8475c00db039f9f2c",
        "timestamp_iso": "2025-02-12T09:04:03.000Z",
        "transaction_count": 1,
        "base_fee_per_gas_wei": "1000000"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:31.016Z",
        "request_id": "f150c7e2-23e6-4980-acff-f7b3c9d1784c"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}