交易 API
transactions按交易雜湊查詢交易詳情與執行收據日誌,也可分頁列出某個區塊內包含的全部交易,便於追蹤交易狀態與解析事件。
端點列表
| 方法 | 路徑 | 說明 | 每次呼叫 CU | 每百萬次(USD) | 免費額度約可呼叫(次/週期) |
|---|---|---|---|---|---|
| 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 |
| 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 |
| 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/base_mainnet/transactions/{hash}" -H "x-api-key: {api_key}"相關文件
免費試用本資料集
註冊即得 3,000 萬 CU,每 30 天補足。
被拒絕的請求不計費,Data API 只對成功回應計費。