JSON-RPC API reference
linea_estimateGas
Generates and returns an estimate of how much gas is necessary to allow the transaction to complete and be published on Ethereum. The transaction will not be added to the blockchain.
For more information about estimating gas, see our guide, and for more information about how this API formulates the transaction costs, see the predictable pricing feature.
The priorityFeePerGas returned by this method includes the cost of submitting the transaction to
Ethereum, which can vary based on the size of the calldata.
note
linea_estimateGas uses the same inputs as the standard
eth_estimateGas, but
returns the recommended gas limit, the base fee per gas, and the priority fee per gas. We recommend
using linea_estimateGas for more accurate results.