API บล็อก
อ่านระเบียนบล็อกที่ได้รับการยืนยันตามหมายเลขหรือแฮช พร้อมข้อมูลประทับเวลา จำนวนธุรกรรม และเมทริกซ์ gas
เอนด์พอยต์
| เมธอด | พาธ | คำอธิบาย | CU / คำขอ | USD / 1 ล้านคำขอ | จำนวนคำขอต่อรอบฟรี (โดยประมาณ) |
|---|---|---|---|---|---|
| GET | /{chain}/blocks/{number} | ดึงข้อมูลบล็อกตามหมายเลขบล็อก | 5 | $0.50 | 6,000,000 |
| GET | /{chain}/blocks/hash/{hash} | ดึงข้อมูลบล็อกตามแฮช | 5 | $0.50 | 6,000,000 |
แผนบริการฟรี: ทุกคีย์ในบัญชีของคุณแชร์ความเร็วเฉลี่ยร่วมกันที่ 25 คำขอต่อวินาที
ฟิลด์การตอบกลับ
GET/{chain}/blocks/{number}
| ฟิลด์ | ประเภท |
|---|---|
| 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}
| ฟิลด์ | ประเภท |
|---|---|
| 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 |
พร้อมใช้งานบนเชน
ตัวอย่างการใช้งานแบบย่อ
curl -s "https://api.blockvectra.com/v1/data/arb_mainnet/blocks/1" -H "x-api-key: {api_key}"เอกสารประกอบ
ทดลองใช้ชุดข้อมูลนี้ฟรี
รับ 30M CU เมื่อลงทะเบียน พร้อมเติมเครดิตใหม่ทุก 30 วัน
Data API จะเรียกเก็บค่าบริการเฉพาะคำขอที่ส่งคืนสำเร็จเท่านั้น