Skip to content

Allow state override on eth_estimateGas #27800

@antonydenyer

Description

@antonydenyer

Rationale

Currently, you can not perform an eth_estimateGas 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 approve followed by a transfer call. You can estimate gas for the approve but not the transfer.

Implementation

Add an additional parameter to the end of the request in the same way eth_call does.
Are you willing to implement this feature? Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions