edr
edr copied to clipboard
Implement eth_simulateV1
The new eth_simulateV1 augments eth_call, and adds many new features.
- run simulation of multiple calls, not just one (sending parallel eth_call is not the same, as they can't depend on each other)
- 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
- 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.
Thank you @drortirosh for writing this up. We'll probably look at picking this up within a couple of months.