Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 916 Bytes

File metadata and controls

11 lines (8 loc) · 916 Bytes

import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js';

Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance.

:::warning Gas parameter is capped

To prevent abuse of the API, the gas parameter in this eth_estimateGas method and in eth_call is capped at 10x (1000%) the current block gas limit. You can recreate this behavior in your local test environment (Besu, geth, or other client) using the rpc.gascap command line option. :::