Closed wantedsystem closed 1 month ago
Latest commit: 2ffcda561e23412a52826dbc14b51115f877b46e
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Linea, a layer 2 blockchain, supports the Ethereum EIP-1559 gas price model, known for making transaction fees more predictable. Unlike the base Ethereum layer, Linea aims to offer a more stable and cost-effective approach to handling transaction fees. For detailed information, you can visit Linea's Gas Fees Documentation.
To further enhance the efficiency of transaction fee calculations, Linea has introduced a new RPC method designed to provide the best gas price estimates. This new method is documented in detail here.
The introduction of this new RPC method necessitates changes in how web3 libraries calculate gas prices. Traditionally, these libraries used the eth_gasPrice method. Linea's update shifts this approach to utilize the newly introduced linea_estimateGas method.
Detailed summary
PR-Codex overview
The focus of this PR is to enhance the gas estimation and fee calculation process for the
linea
chain.Detailed summary
lineaEstimateFeesPerGas
andlineaEstimateGas
functionsLineaEstimateGasRpcSchema
and related typeslinea
andlineaSepolia
chain definitions