Naar de inhoud
GET /v1/block

Block detail by height or hash

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "block": {
            "bits": 386218132,
            "hash": "00000000000000000002a7c4c1e48d76c5a37902165a270156b7a8d72728a054",
            "size": 1634536,
            "nonce": 106861918,
            "height": 800000,
            "weight": 3992881,
            "version": 874340352,
            "tx_count": 3721,
            "timestamp": 1690168629,
            "difficulty": 53911173001054.586,
            "merkle_root": "91f01a00530c8c83617190048ea8b0814d506cf24dfdbcf8893f8f0cab7f0855",
            "previous_block": "000000000000000000012117ad9f72c1c0e42227c2d042dca23e6b96bd9fbb55"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T01:19:54.117Z",
        "request_id": "f8f068dd-483a-408f-84f8-925e24d8dfef"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}