Skip to main content
Plasma API method that simulates transaction execution.

Parameters

  • object — the simulation configuration object
  • quantity or tag — the block number in hex format or block tag (latest, earliest, pending, safe, finalized)

Response

  • object — the simulation result

eth_simulateV1 code examples

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

const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");

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

call();