Μετάβαση στο περιεχόμενο
GET /v1/blocks

Latest blocks

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/corn-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x57a70b27dea9840c4f421136feaba4f1b6c7544ae3e7e7ae496843d8dad42283",
                "size": 1934,
                "miner": "0xA4b000000000000000000073657175656e636572",
                "height": 1635194,
                "gas_used": 116304,
                "tx_count": 2,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T09:50:51.000000Z",
                "burnt_fees": "58152000000",
                "difficulty": "1",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0x89f7198eef671f94de77ef42ef473f3327772299784ed1dc29bed1aafd66da03",
                "size": 1871,
                "miner": "0xA4b000000000000000000073657175656e636572",
                "height": 1635193,
                "gas_used": 119065,
                "tx_count": 2,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T09:50:18.000000Z",
                "burnt_fees": "59532500000",
                "difficulty": "1",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0x22139c8cf617cc11bb6291878571832b30de725018a50c4b6c005f1f5fb3770e",
                "size": 1934,
                "miner": "0xA4b000000000000000000073657175656e636572",
                "height": 1635192,
                "gas_used": 116280,
                "tx_count": 2,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T09:50:18.000000Z",
                "burnt_fees": "58140000000",
                "difficulty": "1",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0x67bb68dc836dec978bb083e72574622c64a748e286ecf4c04d7b17094c598aaf",
                "size": 1871,
                "miner": "0xA4b000000000000000000073657175656e636572",
                "height": 1635191,
                "gas_used": 119101,
                "tx_count": 2,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T09:49:18.000000Z",
                "burnt_fees": "59550500000",
                "difficulty": "1",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0x46dda4c70f8b464f7c5ed906ba77da988f4feb6ca8dbfc736de619abe706952c",
                "size": 1998,
                "miner": "0xA4b000000000000000000073657175656e636572",
                "height": 1635190,
                "gas_used": 125708,
                "tx_count": 2,
                "gas_limit": 1125899906842624,
                "timestamp": "2026-06-08T09:48:46.000000Z",
                "burnt_fees": "62854000000",
                "difficulty": "1",
                "base_fee_per_gas": "500000"
            },
            {
                "hash": "0x0ba5627e65ce7ea27e4a740d9804f334364835bc1afcbd9a16df5b8477762bd4",
                "size": 1403,
               
…