-
Notifications
You must be signed in to change notification settings - Fork 1k
Allow state override on eth_call and eth_estimateGas #5788
Copy link
Copy link
Labels
RPCenhancementNew feature or requestNew feature or requestlineahelps L2s using besuhelps L2s using besumainnet
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
RPCenhancementNew feature or requestNew feature or requestlineahelps L2s using besuhelps L2s using besumainnet