Skip to main content
Plasma API method that returns trace at the given position.

Parameters

  • data — the hash of the transaction
  • array — array of trace indices

Response

  • object — the trace object

trace_get code examples

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

const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");

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

call();