eth_estimateGas
JSON-RPC methods
jsonrpc eth_estimateGas | TRON
TRON API method that estimates the amount of gas needed to execute a transaction. This method provides Ethereum-compatible interface for TRON blockchain.
POST
eth_estimateGas
TRON API method that estimates the gas required to execute a transaction, providing an Ethereum-compatible interface for accessing TRON blockchain data.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
jsonrpc— the JSON-RPC protocol version (always “2.0”)method— the method name (always “eth_estimateGas”)params— array containing method parameterstransaction— transaction object containing to, from, gas, gasPrice, value, and data fields
id— request identifier (number or string)
Response
jsonrpc— the JSON-RPC protocol version (“2.0”)id— the request identifier that matches the requestresult— the estimated gas amount as hex string
Use case
Thejsonrpc eth_estimateGas method is used for:
- Calculating gas requirements before sending transactions through Web3 interfaces
- Building transaction fee estimation features in wallets and dApps
- Optimizing gas usage and preventing failed transactions due to insufficient gas
- Implementing dynamic gas pricing and transaction cost calculations
Last modified on April 15, 2026