Skip to content
GET /v1/block

Block detail by height or hash

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/japanopenchain-api

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

Get an API key

Code snippets

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

Example response

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

{
    "data": {
        "block": {
            "hash": "0x96c905675df34e70744f69544873d0b686e385b0cfdc74673a31e1f973022b15",
            "size": 731,
            "miner": "0xB641f142049215EAc3BE10A6d2b7F2f674270130",
            "height": 24260000,
            "gas_used": 21000,
            "tx_count": 1,
            "gas_limit": 470000000,
            "timestamp": "2026-06-08T11:56:44.000000Z",
            "burnt_fees": "147000",
            "difficulty": "2",
            "base_fee_per_gas": "7"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:26.214Z",
        "request_id": "20e9264d-1717-4d4d-ad0c-6e639c1d7e69"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}