Skip to main content
Plasma API method that replays all transactions in a block and returns the requested traces.

Parameters

  • quantity or tag — the block number in hex format or block tag (latest, earliest, pending, safe, finalized)
  • array — array of trace types (trace, vmTrace, stateDiff)

Response

  • array — an array of trace results for each transaction

trace_replayBlockTransactions code examples

const { JsonRpcProvider } = require("ethers");

const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");

async function call() {
  const result = await provider.send("trace_replayBlockTransactions", []);
  console.log(result);
}

call();