POST
/
95e61622bf6a8af293978377718e3b77
/
jsonrpc
/
eth_gasPrice
eth_gasPrice
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/eth_gasPrice \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_gasPrice",
  "id": 1,
  "params": []
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}
TRON API method that returns the current gas price for transactions, providing an Ethereum-compatible interface for accessing TRON blockchain data.
Get you 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_gasPrice”)
  • params — array containing method parameters (empty for this method)
  • id — request identifier (number or string)

Response

  • jsonrpc — the JSON-RPC protocol version (“2.0”)
  • id — the request identifier that matches the request
  • result — the current gas price in wei as hex string

Use case

The jsonrpc eth_gasPrice method is used for:
  • Retrieving current gas pricing information through Web3 interfaces
  • Implementing dynamic gas price adjustments in wallets and dApps
  • Building transaction cost calculators and fee estimation tools
  • Monitoring gas price trends for optimal transaction timing

Body

application/json

Response

200 - application/json

Current gas price in wei

The response is of type object.