交易 API
按交易哈希查询交易详情与执行收据日志,也可分页列出某个区块内包含的全部交易,便于追踪交易状态与解析事件。
端点列表
| 方法 | 路径 | 说明 | 每次调用 CU | 每百万次美元价 | 免费额度约可调用(次/周期) |
|---|---|---|---|---|---|
| GET | /{chain}/transactions/{hash} | 按哈希获取交易 | 5 | $0.50 | 6,000,000 |
| GET | /{chain}/blocks/{number}/transactions | 列出区块的交易 | 10 | $1.00 | 3,000,000 |
免费档:账户下所有 key 合计平均每秒 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 只对成功响应计费。