[Application Development] L1 tx fee no longer correctly estimated using l1_gas * gasOracle.l1BaseFee #428
Replies: 1 comment
-
Found here that you now need to compress the tx data by calculating the following:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Did you check the documentation?
Did you check for duplicate questions?
Issue Description
Previously, smart contracts were able to estimate their own L1 fee paid by querying the GasOracle and multiplying the
l1BaseFee
value by the L1 gas estimation.However, since Dencun, this is no longer the case. The docs still describe this same calculation for estimating the gas fee, but the real L1 fee paid is now much lower than this calculation.
Is there any way we can still estimate the L1 gas fee by querying the GasOracle contract?
Additional Information
No response
Feedback
No response
Beta Was this translation helpful? Give feedback.
All reactions