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
apiKey
Request
This endpoint expects an object.
Call object
The transaction call object.
State override object
Optional object to override account state for simulation.
Response
Estimated gas limit, base fee, and priority fee.
gasLimit
Recommended gas limit for the transaction.
baseFeePerGas
Estimated base fee per gas in hexadecimal format.
priorityFeePerGas
Estimated priority fee per gas in hexadecimal format.