Blok API
blocksBaca catatan blok yang telah dikonfirmasi berdasarkan nomor atau hash, lengkap dengan stempel waktu, jumlah transaksi, dan metrik gas.
Endpoint
| Metode | Jalur | Deskripsi | CU / panggilan | USD / 1M panggilan | Panggilan per siklus gratis (kira-kira) |
|---|---|---|---|---|---|
| GET | /{chain}/blocks/{number} | Dapatkan blok berdasarkan nomor | 5 | $0.50 | 6,000,000 |
| GET | /{chain}/blocks/hash/{hash} | Dapatkan blok berdasarkan hash | 5 | $0.50 | 6,000,000 |
Juga tunduk pada batas 25 panggilan per detik.
Kolom respons
GET/{chain}/blocks/{number}
| Kolom | Tipe |
|---|---|
| number | integer |
| hash | string |
| parent_hash | string |
| timestamp | string |
| miner | string |
| gas_limit | integer |
| gas_used | integer |
| base_fee_per_gas | string | null |
| state_root | string |
| transactions_root | string |
| receipts_root | string |
| tx_count | integer |
| size | integer |
| l1_block_number | integer | null |
| extra | object |
GET/{chain}/blocks/hash/{hash}
| Kolom | Tipe |
|---|---|
| number | integer |
| hash | string |
| parent_hash | string |
| timestamp | string |
| miner | string |
| gas_limit | integer |
| gas_used | integer |
| base_fee_per_gas | string | null |
| state_root | string |
| transactions_root | string |
| receipts_root | string |
| tx_count | integer |
| size | integer |
| l1_block_number | integer | null |
| extra | object |
Tersedia di rantai
Contoh cepat
curl -s "https://api.blockvectra.com/v1/data/base_mainnet/blocks/1" -H "x-api-key: {api_key}"Dokumentasi
Coba kumpulan data ini secara gratis
Dapatkan 30,000,000 CU saat mendaftar, diisi ulang setiap 30 hari.
Permintaan yang ditolak tidak dikenakan biaya, dan Data API hanya menagih respons yang berhasil.