Base
Bereit, das in der Produktion aufzurufen?
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
Base
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
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.| # | Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|---|
| 1 | blockParameter | string | Ja | Block whose transactions to replay. |
| 2 | traceTypes | array | Ja | One or more of `"trace"`, `"vmTrace"`, `"stateDiff"`. At least one value is required. |
| Typ | Beschreibung |
|---|---|
| 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.
| Code | Meldung | Ursache |
|---|---|---|
-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. |
Parameter
hex block number or "latest" | "earliest" | "pending"
["trace"] | ["trace","vmTrace","stateDiff"]