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

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

Get an API key

Code snippets

curl "https://api.oanor.com/moonriver-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/moonriver-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/moonriver-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/moonriver-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": "0x969897138b60e3eb1c8970e2724effb1f7456cc165489cf761186b2e66f9257f",
        "miner": "0x37006dd9d226425c901c5d7f9434c2fb8ac3f533",
        "number": 5000000,
        "gas_used": 154468,
        "gas_limit": 15000000,
        "timestamp": 1693341858,
        "size_bytes": 667,
        "parent_hash": "0x48311891ab381dcdbe7169d5076cccc1b313702fdd55591ec7bb47b0a497a326",
        "timestamp_iso": "2023-08-29T20:44:18.000Z",
        "transaction_count": 1,
        "base_fee_per_gas_wei": "1250000000"
    },
    "meta": {
        "timestamp": "2026-06-15T20:41:09.499Z",
        "request_id": "578c6e41-bc2d-4548-933e-10a90cc2fa9e"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}