Skip to content

Commit

Permalink
internal/ethapi: add optional parameter blockNrOrHash to estimateGas (e…
Browse files Browse the repository at this point in the history
…thereum#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
  • Loading branch information
MariusVanDerWijden committed Dec 4, 2020
1 parent 7770e41 commit 7a68ffd
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 7a68ffd

Please sign in to comment.