API ธุรกรรม
ค้นหาธุรกรรมตามแฮชพร้อมบันทึกเหตุการณ์ใน receipt หรือแสดงรายการธุรกรรมที่รวมอยู่ในบล็อก
เอนด์พอยต์
| เมธอด | พาธ | คำอธิบาย | CU / คำขอ | USD / 1 ล้านคำขอ | จำนวนคำขอต่อรอบฟรี (โดยประมาณ) |
|---|---|---|---|---|---|
| GET | /{chain}/transactions/{hash} | ดึงข้อมูลธุรกรรมตามแฮช | 5 | $0.50 | 6,000,000 |
| GET | /{chain}/blocks/{number}/transactions | แสดงรายการธุรกรรมในบล็อก | 10 | $1.00 | 3,000,000 |
แผนบริการฟรี: ทุกคีย์ในบัญชีของคุณแชร์ความเร็วเฉลี่ยร่วมกันที่ 25 คำขอต่อวินาที
ฟิลด์การตอบกลับ
GET/{chain}/transactions/{hash}
| ฟิลด์ | ประเภท |
|---|---|
| block_number | integer |
| tx_index | integer |
| hash | string |
| block_timestamp | string |
| type | integer |
| from | string |
| to | string | null |
| value | string |
| nonce | integer |
| gas | integer |
| gas_price | string | null |
| max_fee_per_gas | string | null |
| max_priority_fee_per_gas | string | null |
| input | string |
| status | integer | null |
| gas_used | integer |
| cumulative_gas_used | integer |
| effective_gas_price | string | null |
| contract_address | string | null |
| log_count | integer |
| gas_used_for_l1 | integer | null |
| l1_block_number | integer | null |
| extra | object |
| logs | array |
GET/{chain}/blocks/{number}/transactions
| ฟิลด์ | ประเภท |
|---|---|
| block_number | integer |
| tx_index | integer |
| hash | string |
| block_timestamp | string |
| type | integer |
| from | string |
| to | string | null |
| value | string |
| nonce | integer |
| gas | integer |
| gas_price | string | null |
| max_fee_per_gas | string | null |
| max_priority_fee_per_gas | string | null |
| input | string |
| status | integer | null |
| gas_used | integer |
| cumulative_gas_used | integer |
| effective_gas_price | string | null |
| contract_address | string | null |
| log_count | integer |
| gas_used_for_l1 | integer | null |
| l1_block_number | integer | null |
| extra | object |
พร้อมใช้งานบนเชน
ตัวอย่างการใช้งานแบบย่อ
curl -s "https://api.blockvectra.com/v1/data/arb_mainnet/transactions/{hash}" -H "x-api-key: {api_key}"เอกสารประกอบ
ทดลองใช้ชุดข้อมูลนี้ฟรี
รับ 30M CU เมื่อลงทะเบียน พร้อมเติมเครดิตใหม่ทุก 30 วัน
Data API จะเรียกเก็บค่าบริการเฉพาะคำขอที่ส่งคืนสำเร็จเท่านั้น