Avalanche
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Avalanche
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
debug_traceBlockByNumber re-executes every transaction in an Avalanche C-Chain block and returns an opcode-level trace for each, with the block chosen by its height or by a tag such as latest. The C-Chain is Avalanche's EVM chain, where gas is paid in AVAX and the Snowman engine finalizes blocks in roughly one to two seconds, which makes latest a moving target you should use deliberately. Send the request to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, hex 0xa86a). The result is an array of per-transaction traces in block order, each shaped by the tracer you select.
callTracer.| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | blockNumber | string | نعم | 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 number is malformed or not a recognized tag. |
-32000 | block not found | Block does not exist or archive state is unavailable for that number. |
block not found for older heights.latest tag can race with block production — pin a concrete height for reproducible results.المعاملات
hex block number or "latest" | "earliest" | "pending"
Same tracer configuration object as debug_traceTransaction.