Skip to main content
Plasma API method that executes the given call and returns execution traces.

Parameters

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

Response

  • object — the trace result

trace_call code examples

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

const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");

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

call();