Avalanche
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Avalanche
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
debug_traceBlock takes a block you supply as raw RLP-encoded bytes, re-executes it against its parent state on the Avalanche C-Chain, and returns an opcode-level trace for every transaction inside. The C-Chain is Avalanche's EVM chain, where AVAX pays for gas and Snowman consensus settles blocks in roughly one to two seconds. Unlike the by-hash and by-number variants, this method does not look the block up — you hand it the encoded block directly — so the node only needs the parent state to replay it. Send the call to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, hex 0xa86a) and you receive one trace result per transaction in block order.
| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | rlpBlock | string | نعم | RLP-encoded block data. The block must be a valid, known block; the node re-executes it against the parent state. |
| 2 | options | object | لا | Same tracer configuration object as debug_traceTransaction. |
| النوع | الوصف |
|---|---|
| array | Array of per-transaction trace results in block order, identical in shape to debug_traceBlockByHash output. |
Try it live in the Avalanche playground.
| الكود | الرسالة | السبب |
|---|---|---|
-32601 | Method not found | debug namespace not enabled on the node. |
-32602 | Invalid params | RLP data is malformed, empty, or does not decode to a valid block structure. |
-32000 | block not found | Parent state for the provided block is not available (archive state missing). |
eth_getBlockByHash with full transactions and re-encode it, and any encoding mistake yields an Invalid params error.debug_traceBlockByHash — it is a full block replay, so cost scales with how busy the block was, not with how the block was supplied.المعاملات
0x-prefixed RLP-encoded block
Same tracer configuration object as debug_traceTransaction.