Skip to content
Alchemy Logo

linea_estimateGas

POST
/{apiKey}

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

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

objectrequired

The transaction call object.

objectoptional

Optional object to override account state for simulation.

Responses

200

Estimated gas limit, base fee, and priority fee.

Was this page helpful?