Skip to content
GET /v1/block

Block by height or latest

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

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

Get an API key

Code snippets

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

Example response

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

{
    "data": {
        "hash": "0x6cd433d491a36dc89da912b87d0a9abc38a184bf7a8486afad6a75ad02a0a79f",
        "miner": "0x0c047b0f49264c27cd14cd786dcff2b9300bce88",
        "number": 21077628,
        "gas_used": 0,
        "gas_limit": 30000000,
        "timestamp": 1781556055,
        "size_bytes": 1766,
        "parent_hash": "0xc0744535d81fcc6076a9ea26e4b931333af3e8562a5c21e6ad68992644d8603a",
        "timestamp_iso": "2026-06-15T20:40:55.000Z",
        "transaction_count": 0,
        "base_fee_per_gas_wei": "50000000000"
    },
    "meta": {
        "timestamp": "2026-06-15T20:41:06.422Z",
        "request_id": "5afa8ad8-f29a-43d4-a25d-17c72b4141c3"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}