linea_estimateGas
Generates and returns the estimated amount of gas required to allow the transaction to complete and be published on Ethereum. The method does not submit the transaction to the blockchain. This method uses 100 credits from your daily balance.
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.
For more information about estimating gas, and how this API formulates the transaction costs, see the Linea gas fees documentation.
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.