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

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

Get an API key

Code snippets

curl "https://api.oanor.com/boba-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/boba-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/boba-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/boba-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": "0x42ceaafae26c41d6c5c715f2cc85e610737913d8e32e2482bce442aa75444113",
        "miner": "0x4200000000000000000000000000000000000011",
        "number": 20000000,
        "gas_used": 43851,
        "gas_limit": 30000000,
        "timestamp": 1751004841,
        "size_bytes": 849,
        "parent_hash": "0x6fd3ef22244ccd60306e8a7c8575a425306f153d668da6be23038715fca08987",
        "timestamp_iso": "2025-06-27T06:14:01.000Z",
        "transaction_count": 1,
        "base_fee_per_gas_wei": "252"
    },
    "meta": {
        "timestamp": "2026-06-15T20:41:03.807Z",
        "request_id": "a4315d84-e123-4153-8c9d-aa5fac35fede"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}