Skip to content
GET /v1/block

A single block by header id

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/ergo-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "id": "63359f6e2b35749e283540848927d3e67112c4e40e96169fd85aa0aa2967a2a2",
        "height": 1804626,
        "source": "Ergo Platform",
        "version": 4,
        "miner_pk": null,
        "tx_count": 5,
        "parent_id": "c51d8214c03a5d8313ce7c3888dcdab52ea1874bd6a64284738415fa419d74f0",
        "timestamp": "2026-06-10T14:05:34.514Z",
        "difficulty": 110969137135616,
        "size_bytes": 42289
    },
    "meta": {
        "timestamp": "2026-06-10T22:58:50.236Z",
        "request_id": "578a696b-3e22-41a1-9bec-987f1cc70444"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}