BNB Smart Chain
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
BNB Smart Chain
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
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.
| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | rlpBlock | string | Oui | RLP-encoded block data. The block must be a valid, known block; the node re-executes it against the parent state. |
| 2 | options | object | Non | Same tracer configuration object as debug_traceTransaction. |
| Type | Description |
|---|---|
| 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.
| Code | Message | Cause |
|---|---|---|
-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.Paramètres
0x-prefixed RLP-encoded block
Same tracer configuration object as debug_traceTransaction.