BNB Smart Chain
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
BNB Smart Chain
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Where the by-hash and by-number tracers ask the node to look a block up, debug_traceBlock hands the node the block. You pass raw RLP-encoded bytes and it re-executes them against the parent state, replaying every transaction at the opcode level. That decoupling is the whole point: the block need not sit on the canonical chain, or anywhere on disk, for you to trace it. Post the payload to BNB Smart Chain (BSC), chain ID 56, at https://bsc.therpc.io/YOUR_API_KEY. Because the parent state still has to exist for the replay to succeed, this is a heavy debug call that wants a debug-enabled archive node behind it.
| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 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 BNB Smart Chain 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, then re-encode it themselves.debug_traceBlockByHash because both replay the full block. A fat block returns a fat response and may be rate-limited on lower tiers.المعاملات
0x-prefixed RLP-encoded block
Same tracer configuration object as debug_traceTransaction.