Trace API
取得整個區塊或單筆交易的歷史 callTracer 執行追蹤樹,可用於排解內部合約呼叫問題、複雜交易逆向分析與 Gas 消耗歸因。
端點列表
| 方法 | 路徑 | 說明 | 每次呼叫 CU | 每百萬次(USD) | 免費額度約可呼叫(次/週期) |
|---|---|---|---|---|---|
| GET | /{chain}/blocks/{number}/traces | 整個區塊的歷史 callTracer 追蹤樹 | 200 | $20.00 | 150,000 |
| GET | /{chain}/transactions/{hash}/trace | 單筆交易的歷史 callTracer 追蹤樹 | 200 | $20.00 | 150,000 |
免費檔:帳戶下所有 key 合計平均每秒 25 次。
回傳欄位
GET/{chain}/blocks/{number}/traces
| 欄位 | 型別 |
|---|---|
| txHash | string |
| result | object |
GET/{chain}/transactions/{hash}/trace
| 欄位 | 型別 |
|---|---|
| type | string |
| from | string |
| to | string |
| value | string |
| gas | string |
| gasUsed | string |
| input | string |
| output | string |
| error | string |
| revertReason | string |
| calls | array |
可用鏈
快速範例
curl -s "https://api.blockvectra.com/v1/data/robinhood_mainnet/transactions/{hash}/trace" -H "x-api-key: {api_key}"相關文件
免費試用本資料集
註冊即得 30M CU,每 30 天自動補足。
Data API 只對成功回應計費。