API Giao dịch
Tra cứu giao dịch theo mã băm kèm event log trong receipt, hoặc liệt kê các giao dịch có trong khối.
Endpoint
| Phương thức | Đường dẫn | Mô tả | CU / Lệnh gọi | USD / một triệu lệnh gọi | Lệnh gọi mỗi chu kỳ miễn phí (ước tính) |
|---|---|---|---|---|---|
| GET | /{chain}/transactions/{hash} | Lấy giao dịch theo mã băm | 5 | $0.50 | 6,000,000 |
| GET | /{chain}/blocks/{number}/transactions | Danh sách giao dịch trong khối | 10 | $1.00 | 3,000,000 |
Gói miễn phí: tất cả các khóa trong tài khoản chia sẻ mức trung bình 25 lệnh gọi mỗi giây.
Các trường phản hồi
GET/{chain}/transactions/{hash}
| Trường | Kiểu |
|---|---|
| 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
| Trường | Kiểu |
|---|---|
| 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 |
Khả dụng trên các chuỗi
Ví dụ nhanh
curl -s "https://api.blockvectra.com/v1/data/arb_mainnet/transactions/{hash}" -H "x-api-key: {api_key}"Tài liệu
Dùng thử miễn phí bộ dữ liệu này
Nhận 30M CU khi đăng ký, nạp lại sau mỗi 30 ngày.
Data API chỉ tính phí cho các phản hồi thành công.