Giao dịch API
transactionsTra cứu giao dịch theo mã băm kèm theo nhật ký sự kiện biên nhận, 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 |
Đồng thời chịu giới hạn 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 |
| 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 |
| 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/base_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 30,000,000 CU khi đăng ký, nạp lại sau mỗi 30 ngày.
Các yêu cầu bị từ chối không bị tính phí, và Data API chỉ tính phí cho các phản hồi thành công.