Skip to content

Allow state override on eth_call and eth_estimateGas  #5788

@antonydenyer

Description

@antonydenyer

Description

Currently, you can not perform an eth_estimateGas or an eth_call on something that isn't in the 'correct' state as the evm will, correctly, return an error. For example, on an erc20 you may wish to send an approval followed by a transfer call.

You can estimate gas for the approve but not the transfer.
You can not check the result of a transfer without an approval first.

As a network participant, I would like access to be able to drop in and replace Besu in certain networks/tooling/RPC stacks.

Acceptance Criteria

Whilst it's not specified in the ethereum rpc spec the implementation should be based on the Geth rpc docs to allow a drop in replacement.

https://geth.ethereum.org/docs/interacting-with-geth/rpc/ns-eth#eth-call

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions