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"]