web3.py: No way to specify block number for eth_estimateGas

At present the library doesn’t provide any way to specify block number when calling estimateGas (the second parameter to that function). It’d be useful if this was provided, and especially useful if it can be made accessible when automatically estimating gas via build_transaction or transact (in order to be able to specify ‘pending’).

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 21 (1 by maintainers)

Most upvoted comments

@ankitchiplunkar You’ve been approved! Please do keep us posted on your progress here, excited to see how it goes 🙂

Yup, seems reasonable.

Side note: I’m curious about the use case for pending (which isn’t supported in trinity at all). Do you want to use pending because you are broadcasting several transactions in a row, and want to estimate gas based on the presumed state after the previous transaction completes?