You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a custom EVM that is more flexible than standard JSON-RPC interface, but you can definitely accomplish this with go-ethereum.
Basically, instead of just opening StateDB at a certain block number you also need to apply all transactions with an index lower than provided index.
Keep in mind that this requires an archive node if you want to perform eth_call on old blocks (more than 128 blocks in the past) and that applying transactions can take a bit more time (up to 300-400ms) depending on the index.
hi,
eth_call
can be executed query/tx in a specific block as this method showsgo-ethereum/ethclient/ethclient.go
Line 475 in c503f98
is it possible to execute
eth_call
in a specific block AND a specific index?I happened to see this service, it can fork chain at a specific block and index, which is really cool!
and then I can do simulation
how can I implement it in the native go-ethereum current codebase?
The text was updated successfully, but these errors were encountered: