HomeSource World

internal/ethapi: add optional parameter blockNrOrHash to estimateGas (#21545)

Description

internal/ethapi: add optional parameter blockNrOrHash to estimateGas (#21545)

This allows users to estimate gas on top of arbitrary blocks as well as pending and latest.
Tracing on pending is useful for most users as it takes into account the current txpool while
tracing on latest might be useful for users that have little to know knowledge of the current
transactions in the network.

If blockNrOrHash is not specified, estimateGas defaults to pending

Details

Provenance
Marius van der Wijden <m.vanderwijden@live.de>Authored on Sep 23 2020, 8:29 AM
GitHub <noreply@github.com>Committed on Sep 23 2020, 8:29 AM
Parents
rGETH25b16085da1b: trie: support empty range proof (#21199)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETH0921f8a74f1c: internal/ethapi: add optional parameter blockNrOrHash to estimateGas (#21545) (authored by Marius van der Wijden <m.vanderwijden@live.de>).Sep 23 2020, 8:29 AM