Skip to content

[Feature] Add helper for eth_estimate gas #225

@mattsse

Description

@mattsse

Describe the feature you would like

gas estimation is super cursed

so cursed that we currently maintain at least 3 impls:

https://github.com/paradigmxyz/reth/blob/74351d98e906b8af5f118694529fb2b71d316946/crates/rpc/rpc-eth-api/src/helpers/estimate.rs#L40-L49

https://github.com/foundry-rs/foundry/blob/eb76d29cd61e3696440b43461bff713d89706385/crates/anvil/src/eth/api.rs#L3076-L3081

and somewhere else in foundry

ideally with have at least part of this logic encapsulated in some reusable helpers

tho unsure if this is even feasible

the reth impl is the most accurate one and should probably use as reference impl, if possible

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions