Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 23, 2020

Commits on Sep 15, 2020

  1. internal/ethapi: add optional parameter blockNrOrHash to estimateGas

    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
    MariusVanDerWijden committed Sep 15, 2020
    Configuration menu
    Copy the full SHA
    6548039 View commit details
    Browse the repository at this point in the history