-
Notifications
You must be signed in to change notification settings - Fork 399
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
Update linea_estimateGas
reference with compatibility mode details
#747
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
`linea_estimateGas` is currently unavailable, but we will provide activation dates soon. In the | ||
meantime, please get in touch via the [Linea Discord](https://discord.gg/linea) if you intend to | ||
use `linea_estimateGas` once it is available. | ||
`linea_estimateGas` is currently only available on Mainnet in compatibility mode, which means it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sounds like it's unavailable on Sepolia, but it is
|
||
The formula with `linea_estimateGas` enabled is: | ||
``` | ||
fee = (calldataUsed * multiplier + constant) * gasUsed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's inaccurate
- multiplier - Linea's cost per byte on L1 in current market conditions
- There's another multiplier
(overheadMultiplier aka margin) * (calldataUsedInBytes * multiplier + constant) * gasUsed
. This margin is to ensure that in case of a sudden change of market conditions (gas price increase) transaction is still accepted
I know that public knowledge shouldn't be exactly the same as internal, but please take it into consideration
|
||
For most people running an `advanced` Linea Besu node—a prerequisite for using `linea_estimateGas`— | ||
compatibility mode will already be disabled in the files you downloaded from the [`linea-besu-package` | ||
repository](https://github.com/Consensys/linea-besu-package/tree/main). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can put a more specific link, https://github.com/Consensys/linea-besu-package/blob/main/linea-besu/profiles/advanced-sepolia.toml
Compatibility mode for
linea_estimateGas
must be disabled on relevant nodes from September 30 whenlinea_estimateGas
is activated on Mainnet to ensure that the endpoint behaves as intended; otherwise, compatibility mode means it will return the same aseth_gasPrice
. Added details of this and explained how to disable/check it is already disabled.