eth_estimate_gas
Estimate gas price and units required for Ethereum transactions using up-to-date block and mempool data. Convert fees from wei to Gwei before submission.
Instructions
[fee_estimation] 10 credits per API call Get an estimated gas price and the number of gas units needed for an Ethereum transaction. The gas price is obtained from multiple sources and calculated based on the latest N blocks and the current mempool state. The fast gas price is used by default. NOTE: The estimated gas price is returned in wei. However, when making the transaction itself and providing the custom fee, you have to provide the gas price in Gwei. Make sure to convert the estimated gas price from wei to Gwei before submitting your transaction.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
x-testnet-type | No | Type of Ethereum testnet. Defaults to ethereum-sepolia. |