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

Latest blocks

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

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

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

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

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

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

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

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

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

{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x6b55fbf0a23ed6b372edc177e1af75c83b590a19e53c0732992fca00adf044c8",
                "size": 620,
                "miner": "0xcc9Dc6b16775c097559a3817C1D4e64d5975C6D4",
                "height": 28405324,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:48:52.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "18000000000"
            },
            {
                "hash": "0xf044f45636ec286c2987127aee2f0ead6735136161e71796f2a157f15290f2d0",
                "size": 620,
                "miner": "0xcc9Dc6b16775c097559a3817C1D4e64d5975C6D4",
                "height": 28405323,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:48:50.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "18000000000"
            },
            {
                "hash": "0x9be3e49b3d4d8e93493b88e6970847eb87f32471f860152820641be3e7a530c0",
                "size": 620,
                "miner": "0xcc9Dc6b16775c097559a3817C1D4e64d5975C6D4",
                "height": 28405322,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:48:48.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "18000000000"
            },
            {
                "hash": "0xcf4d8ed75987ac7981df2bb1d783da7178dccf449e0946e490dae548947a6a27",
                "size": 620,
                "miner": "0xcc9Dc6b16775c097559a3817C1D4e64d5975C6D4",
                "height": 28405321,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:48:45.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "18000000000"
            },
            {
                "hash": "0x31487105abd54885ab1091d081c82bafbb82d419e872e68c2e8370f986602332",
                "size": 620,
                "miner": "0xcc9Dc6b16775c097559a3817C1D4e64d5975C6D4",
                "height": 28405320,
                "gas_used": 0,
                "tx_count": 0,
                "gas_limit": 30000000,
                "timestamp": "2026-06-08T09:48:43.000000Z",
                "burnt_fees": "0",
                "difficulty": "0",
                "base_fee_per_gas": "18000000000"
            },
            {
                "hash": "0xa07216763319fc6898b5925b27b94a38a39b6ef9f4b26e46ac91c71e5331d89c",
                "size": 620,
                "miner": "0xcc9Dc6b16775c097559a3817C1D4e64d5975C6D4",
                "height": 28405319,
…