Ethereum
Bereit, das in der Produktion aufzurufen?
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
Ethereum
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
debug_traceBlockByHash traces a whole Ethereum mainnet block (chain ID 1, native coin ETH) addressed by its 32-byte block hash. The hash pins down exactly one block — even one that lost a reorg and never became canonical — so this is the precise entry point when you know the hash and want no ambiguity about which block you mean. The node replays every transaction in that block through the EVM and returns an opcode-level trace per transaction, in block order. Point your calls at https://ethereum.therpc.io/YOUR_API_KEY. Tracing a full block is heavy work, so it expects a debug-enabled archive node holding the state at that height.
callTracer: reconstruct every sandwich, arbitrage, and liquidation in a block as a nested call tree without parsing raw opcodes.| # | 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 Ethereum 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 — both replay every transaction in the block. Identifying the block by hash buys precision, not speed.block not found rather than a trace.Parameter
0x-prefixed 32-byte block hash
Same tracer configuration object as debug_traceTransaction.