Ethereum
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Ethereum
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
When you need the deepest possible view of an Ethereum block, trace_replayBlockTransactions re-executes every transaction in it from scratch and returns whichever combination of trace, vmTrace, and stateDiff you ask for, per transaction. It's the block-wide counterpart to trace_replayTransaction: same selectable outputs, but applied to the full transaction list in execution order. Because it actually replays each transaction against the prior state, it can report the exact balance, nonce, code, and storage deltas every ETH transfer and contract call produced. This runs on Ethereum mainnet (chain ID 1) through the trace namespace at https://ethereum.therpc.io/YOUR_API_KEY, served by an archive node. Give it a block (number or tag) and at least one trace type.
["stateDiff"] and get a complete write-by-write audit of every transaction in the block, the kind of feed a chain-analytics pipeline ingests to track exactly what each transaction changed on-chain.["trace","vmTrace"] to follow the full execution flow across every transaction and see how a bundle of swaps and liquidations fit together in one slot.| # | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 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 Ethereum 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"]