Base
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Base
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
trace_replayBlockTransactions replays every transaction in a Base block and returns, for each one, a selectable combination of call-tree trace, opcode-level VM trace, and state diff. Base is Coinbase's OP Stack optimistic rollup that meters gas in ETH and settles to Ethereum L1. Send the request to https://base.therpc.io/YOUR_API_KEY (chain ID 8453, hex 0x2105) with a block specifier and a traceTypes array choosing trace, vmTrace, stateDiff, or any mix. The response is one replay result per transaction in block order, each carrying its transactionHash. It is the block-wide counterpart to trace_replayTransaction: where that method replays a single transaction, this one rebuilds the full execution and state changes for an entire Base block at once.
stateDiff audit for every transaction in a Base block, feeding a chain-analytics pipeline that needs precise per-block storage and balance changes.trace and stateDiff to see how value moved through Aerodrome and Uniswap pools.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 1 | blockParameter | string | 是 | Block whose transactions to replay. |
| 2 | traceTypes | array | 是 | One or more of `"trace"`, `"vmTrace"`, `"stateDiff"`. At least one value is required. |
| 类型 | 描述 |
|---|---|
| array | Array of per-transaction replay results in block order. Each element has the same shape as trace_replayTransaction output, plus `transactionHash`. |
Try it live in the Base playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32601 | Method not found | trace namespace not enabled or not supported by this client. |
-32602 | Invalid params | blockParameter is malformed or traceTypes is empty or contains unknown values. |
-32000 | block not found | Block does not exist or archive trace data is unavailable for that block. |
参数
hex block number or "latest" | "earliest" | "pending"
["trace"] | ["trace","vmTrace","stateDiff"]