You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above link has
rawhex = signed_tx.rawTransaction.hex()
l1BaseFee = opGas.functions.l1BaseFee().call()
overhead = opGas.functions.overhead().call()
scalar = opGas.functions.scalar().call()/1000000
gasPrice = opGas.functions.gasPrice().call()
l1Fee = opGas.functions.getL1Fee(rawhex).call()
l1GasUsed = opGas.functions.getL1GasUsed(rawhex).call()
Would be dope if instead of users having to delve deep into l2 developer docs and track down the in's and outs
of how this stuff worked, you guys could work your wizardry and simplify things a bit.
I'm guessing the same goes for arb and any other l2's but the only one I'm wrestling with is Op.
Perhaps estimate_gas could look for chain id, and then magic the appropriate information out
respectively.
Please include any of the following that are applicable:
The code which produced the error
The full output of the error
What type of node you were connecting to.
How can it be fixed?
Fill this section in if you know how this could or should be fixed.
Note: We prefer to use issues to track our work. If you think you've encountered a bug in web3py or
have a feature request, you're in the right place. If you have implementation or usage questions,
please refer to our documentation and/or join the conversation
on discord.
The text was updated successfully, but these errors were encountered:
pip freeze
outputWhat would be nice?
estimate_gas on Op doesn't include underlying l1 costs
https://optimistic.etherscan.io/address/0x420000000000000000000000000000000000000F#readProxyContract
The above link has
rawhex = signed_tx.rawTransaction.hex()
l1BaseFee = opGas.functions.l1BaseFee().call()
overhead = opGas.functions.overhead().call()
scalar = opGas.functions.scalar().call()/1000000
gasPrice = opGas.functions.gasPrice().call()
l1Fee = opGas.functions.getL1Fee(rawhex).call()
l1GasUsed = opGas.functions.getL1GasUsed(rawhex).call()
Would be dope if instead of users having to delve deep into l2 developer docs and track down the in's and outs
of how this stuff worked, you guys could work your wizardry and simplify things a bit.
I'm guessing the same goes for arb and any other l2's but the only one I'm wrestling with is Op.
Perhaps estimate_gas could look for chain id, and then magic the appropriate information out
respectively.
Please include any of the following that are applicable:
How can it be fixed?
Fill this section in if you know how this could or should be fixed.
Note: We prefer to use issues to track our work. If you think you've encountered a bug in web3py or
have a feature request, you're in the right place. If you have implementation or usage questions,
please refer to our documentation and/or join the conversation
on discord.
The text was updated successfully, but these errors were encountered: