Skip to content
GET /v1/block

Block by number (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/matchain-api

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

Get an API key

Code snippets

curl "https://api.oanor.com/matchain-api/v1/block" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/matchain-api/v1/block", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/matchain-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/matchain-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": "0xaece1dc572f44bb9aecaaf3140235aff1c25d428e6819aca4ad24218cf41d084",
        "chain": "Matchain",
        "miner": "0x4200000000000000000000000000000000000011",
        "number": 5000000,
        "gas_used": 43839,
        "tx_count": 1,
        "gas_limit": 100000000,
        "timestamp": 1726308788,
        "size_bytes": 838,
        "parent_hash": "0xd8ce9dee02f3be1502520d79378de35d1281b07a75c40fbd24f74e60cd990171",
        "timestamp_iso": "2024-09-14T10:13:08.000Z"
    },
    "meta": {
        "timestamp": "2026-06-15T20:40:09.620Z",
        "request_id": "cce77f16-5348-4098-8200-04744f8ae960"
    },
    "status": "ok",
    "message": "Matchain block retrieved",
    "success": true
}