BNB Smart Chain
Bereit, das in der Produktion aufzurufen?
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
BNB Smart Chain
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
A 32-byte block hash points at exactly one block, fork or no fork. That is what sets debug_traceBlockByHash apart from its by-number twin: feed it a hash and you get an opcode-level trace of every transaction in that specific block, even if a competing block won the same height. On BNB Smart Chain (BSC), where PoSA consensus seals a block roughly every three seconds and short reorgs do happen, that determinism matters. Send the request to chain ID 56 at https://bsc.therpc.io/YOUR_API_KEY. The call replays the whole block against historical state, so plan on a debug-enabled archive node.
callTracer, capturing each transaction's nested calls in fork order.| # | Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|---|
| 1 | blockHash | string | Ja | Hash of the block to trace. |
| 2 | options | object | Nein | Same tracer configuration object as debug_traceTransaction. |
| Typ | Beschreibung |
|---|---|
| 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 BNB Smart Chain playground.
| Code | Meldung | Ursache |
|---|---|---|
-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, since both re-run every transaction the block carries.Parameter
0x-prefixed 32-byte block hash
Same tracer configuration object as debug_traceTransaction.