Zum Inhalt springen
GET /v1/block

A block height, time, proposer and tx count

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "time": "2026-06-10T14:01:28.104462034Z",
        "height": 11470462,
        "source": "Celestia",
        "chain_id": "celestia",
        "tx_count": 5,
        "block_hash": "9QnNJYRmsqoQCVPvl+jUERk+Rn/b+MJQwvaE8sJ//kM=",
        "proposer_address": "OPvFKLiCGi4dkkKk4uJvHUUjx24="
    },
    "meta": {
        "timestamp": "2026-06-10T14:01:35.787Z",
        "request_id": "1c27173c-94c0-41e8-96b9-9cf4b2ebeebc"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}