Zum Inhalt springen
GET /v1/blocks

The most recent blocks

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/zksync-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x1b756b3cefca716bf23adcd7e5b5d1cf3f47e6064ac810f8e61eb89c4fa5c6f5",
                "size": 0,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 70613558,
                "gas_used": 176241,
                "tx_count": 1,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T01:18:07.000000Z",
                "burnt_fees": "7974905250000",
                "difficulty": "0",
                "base_fee_per_gas": "45250000"
            },
            {
                "hash": "0xbdf22c6abe97955bdf7403352c30ce1b6195f6b3b260a7b2c8d4fa549a98723c",
                "size": 0,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 70613557,
                "gas_used": 148371,
                "tx_count": 1,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T01:18:06.000000Z",
                "burnt_fees": "6713787750000",
                "difficulty": "0",
                "base_fee_per_gas": "45250000"
            },
            {
                "hash": "0xf4af98edbd8b51a654ac97be8886b3640407d4880e037d78b915ea1a6261f4ad",
                "size": 0,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 70613556,
                "gas_used": 225295,
                "tx_count": 1,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T01:18:01.000000Z",
                "burnt_fees": "10194598750000",
                "difficulty": "0",
                "base_fee_per_gas": "45250000"
            },
            {
                "hash": "0xb32232877ccc5aa824de94361c071c48922c9dd2ad71ff2624a1dca0b3c8c1f2",
                "size": 0,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 70613555,
                "gas_used": 214479,
                "tx_count": 1,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T01:17:50.000000Z",
                "burnt_fees": "9705174750000",
                "difficulty": "0",
                "base_fee_per_gas": "45250000"
            },
            {
                "hash": "0x9230fff1a0aab6999e02a0b5e77d6b3e230729a4524f886ad4069176864f7ff7",
                "size": 0,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 70613554,
                "gas_used": 115466,
                "tx_count": 1,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T01:17:49.000000Z",
                "burnt_fees": "5224836500000",
                "difficulty": "0",
                "base_fee_per_gas": "45250000"
            },
            {
                "hash": "0x720880d53e2e4ecefac524937014aef0ad3f5920c020736b770c4c118bdced9b",
                "size": 0,
       
…