Naar de inhoud
GET /v1/block

A block height, time, proposer and tx count

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}