Ethereum
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Ethereum
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
debug_traceBlockByNumber runs a full trace over one Ethereum block (chain ID 1, native coin ETH) that you select by height instead of by hash. Pass a hex block number, or one of latest, earliest, pending, safe, or finalized — the last two map onto Gasper's justified and finalized checkpoints, which is the dependable way to trace heights that can no longer be reorged. For each transaction in the selected block the node re-executes it on the EVM and emits a per-transaction opcode trace, ordered as they appear on chain. Send requests to https://ethereum.therpc.io/YOUR_API_KEY. Re-running an entire block is expensive, so this needs a debug-enabled archive node for any height beyond the recent state window.
callTracer, then study how searchers ordered their transactions within the 12-second slot.| # | Nombre | Tipo | Requerido | Descripción |
|---|---|---|---|---|
| 1 | blockNumber | string | Sí | Block to trace. |
| 2 | options | object | No | Same tracer configuration object as debug_traceTransaction. |
| Tipo | Descripción |
|---|---|
| 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.
| Código | Mensaje | Causa |
|---|---|---|
-32601 | Method not found | debug namespace not enabled on the node. |
-32602 | Invalid params | Block number is malformed or not a recognized tag. |
-32000 | block not found | Block does not exist or archive state is unavailable for that number. |
callTracer unless you truly need opcode detail.block not found.latest resolve at request time and can race a freshly proposed block. For results that won't shift under a reorg, trace at finalized instead — once a checkpoint finalizes (~12.8 minutes), the block is locked in.Parámetros
hex block number or "latest" | "earliest" | "pending"
Same tracer configuration object as debug_traceTransaction.