Naar de inhoud
GET /v1/block

A block by height: hash, timestamp, tx count, size, weight

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "id": "75abdf85fa4e465cb9d9dabed728583f291a8123f50c6d99f71894f22da7e648",
        "note": "A Liquid block by height: its hash, previous block, timestamp, transaction count, size and weight. Omit height for the current tip block.",
        "size": 1776,
        "height": 3000000,
        "source": "Blockstream esplora (Liquid)",
        "weight": 6975,
        "tx_count": 1,
        "timestamp": 1724373428,
        "median_time": 1724373127,
        "previous_block": "14e50221a4a7b796f0d29a8219549d9d6687d51bd2aa9b7abeb8b42443bb6dd1"
    },
    "meta": {
        "timestamp": "2026-06-14T17:04:30.004Z",
        "request_id": "3e3900f0-9294-4991-bc4a-a415ae8dda28"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}