linea_estimateGas

Generates and returns the estimated amount of gas required to allow the transaction to complete and be published on Ethereum. This method does not submit the transaction to the blockchain. The priorityFeePerGas returned includes the cost of submitting the transaction to Ethereum, which can vary based on the size of the calldata.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
Call objectobjectRequired
The transaction call object.
State override objectmap from strings to objectsOptional
Optional object to override account state for simulation.

Response

Estimated gas limit, base fee, and priority fee.
gasLimitstring
Recommended gas limit for the transaction.
baseFeePerGasstring
Estimated base fee per gas in hexadecimal format.
priorityFeePerGasstring
Estimated priority fee per gas in hexadecimal format.