edr icon indicating copy to clipboard operation
edr copied to clipboard

Implement eth_simulateV1

Open drortirosh opened this issue 4 months ago • 1 comments

The new eth_simulateV1 augments eth_call, and adds many new features.

  1. run simulation of multiple calls, not just one (sending parallel eth_call is not the same, as they can't depend on each other)
  2. standardize error return: currently (with eth_call), each rpc provider returns error data differently, so apps need to adapt to geth/reth/anvil/hardhat error return
  3. return events emitted during simulation

It is already supported bynode implementations and client sdks

It is a major tool for writing dApp sdk, but not being able to test it using hardhat is a shame.

drortirosh avatar Jul 28 '25 13:07 drortirosh

Thank you @drortirosh for writing this up. We'll probably look at picking this up within a couple of months.

nebasuke avatar Jul 29 '25 09:07 nebasuke