Avalanche
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Avalanche
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
debug_traceBlockByHash re-executes every transaction in a single Avalanche C-Chain block and returns an opcode-level execution trace for each, with the block selected by its hash. The C-Chain is Avalanche's EVM chain, where AVAX is the gas token and the Snowman consensus engine finalizes blocks in about one to two seconds — so identifying a block by hash is the most precise way to trace it, since the hash is unambiguous even around a reorg. Send the call to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, hex 0xa86a). You get back one trace result per transaction, in block order, shaped by whichever tracer you configure.
callTracer.| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | blockHash | string | نعم | Hash of the block to trace. |
| 2 | options | object | لا | Same tracer configuration object as debug_traceTransaction. |
| النوع | الوصف |
|---|---|
| array | Array of per-transaction trace results in block order. Each element has the same shape as debug_traceTransaction output for the active tracer. |
Try it live in the Avalanche playground.
| الكود | الرسالة | السبب |
|---|---|---|
-32601 | Method not found | debug namespace not enabled on the node. |
-32602 | Invalid params | Block hash is missing or not a valid 32-byte hex value. |
-32000 | block not found | Block hash not found or archive state unavailable. |
debug_traceBlockByNumber — it replays every transaction in the block, so the work scales with how busy the C-Chain block was, not with the lookup key.block not found for older hashes.المعاملات
0x-prefixed 32-byte block hash
Same tracer configuration object as debug_traceTransaction.