Skip to content
GET /v1/blocks

The most recent blocks

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

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

Get an API key

Code snippets

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

Example response

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

{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0xcef64ab1203da0a7a9618e96dacdafae84b6bef18deb3777eee75a36b4dea921",
                "size": 130940,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 88117691,
                "gas_used": 37544952,
                "tx_count": 117,
                "gas_limit": 140000000,
                "timestamp": "2026-06-08T01:18:42.000000Z",
                "burnt_fees": "9545726082630643632",
                "difficulty": "1",
                "base_fee_per_gas": "254247923466"
            },
            {
                "hash": "0x168c108531be0d5408b104502569dbd387f6d50e923e071c2d50b2f5cffa6800",
                "size": 133063,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 88117690,
                "gas_used": 45239293,
                "tx_count": 132,
                "gas_limit": 140000000,
                "timestamp": "2026-06-08T01:18:40.000000Z",
                "burnt_fees": "11298230588835352987",
                "difficulty": "1",
                "base_fee_per_gas": "249743747959"
            },
            {
                "hash": "0x3d0cefd9b2c0899d6da622b70c0120c764172abde08e1bdc52c3aba62b0018c1",
                "size": 147301,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 88117689,
                "gas_used": 42887463,
                "tx_count": 131,
                "gas_limit": 140000000,
                "timestamp": "2026-06-08T01:18:39.000000Z",
                "burnt_fees": "10805827370090268183",
                "difficulty": "1",
                "base_fee_per_gas": "251957719441"
            },
            {
                "hash": "0x05c18af78110cbef6cdb7bcc9b4b7233cc354bcb546a18a0dc828ee953783291",
                "size": 115905,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 88117688,
                "gas_used": 39800754,
                "tx_count": 116,
                "gas_limit": 140000000,
                "timestamp": "2026-06-08T01:18:37.000000Z",
                "burnt_fees": "9889762718821162716",
                "difficulty": "1",
                "base_fee_per_gas": "248481793054"
            },
            {
                "hash": "0x280cb3420c903a673724eb546a9951d6ecd8e6dd71c493bd2381f359010286c3",
                "size": 145498,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 88117687,
                "gas_used": 46492394,
                "tx_count": 131,
                "gas_limit": 140000000,
                "timestamp": "2026-06-08T01:18:36.000000Z",
                "burnt_fees": "11648171818050113476",
                "difficulty": "1",
                "base_fee_per_gas": "250539299354"
            },
            {
                "hash": "0x4c2347014a14ce8353ba7a1e9da945640633e7f
…