Base
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Base
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
debug_traceBlockByNumber re-runs an entire Base block and returns opcode-level execution traces for every transaction in it, addressed by block number or by a tag such as latest, earliest, or pending. Base is the OP Stack optimistic rollup Coinbase operates, producing blocks roughly every two seconds, paying gas in ETH, and settling to Ethereum L1. Direct the call to https://base.therpc.io/YOUR_API_KEY (chain ID 8453, hex 0x2105) with the block specifier and an optional tracer config; the node replays each transaction against the parent state and returns one trace per transaction in block order. The number-based form is the convenient way to trace the head of the chain or to sweep a sequential range of Base blocks.
callTracer, then look for sandwich or arbitrage patterns around Aerodrome and Uniswap pools.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | blockNumber | string | 是 | Block to trace. |
| 2 | options | object | 否 | Same tracer configuration object as debug_traceTransaction. |
| 类型 | 描述 |
|---|---|
| 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 Base playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-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. |
latest and pending tags are valid but race with Base's roughly two-second block cadence — the head can advance between the time you send the request and when it is served, so two calls may target different blocks.参数
hex block number or "latest" | "earliest" | "pending"
Same tracer configuration object as debug_traceTransaction.