tronprotocol / tronweb

Javascript API Library for interacting with the TRON Network
MIT License
413 stars 271 forks source link

Varying outcomes are obtained when estimating energy through different methods. #475

Closed AlanDawaCrypto closed 6 months ago

AlanDawaCrypto commented 7 months ago

There are variations in estimating energy consumption when sending USDT on Shasta. The methods include:

  1. Using JSON RPC method eth_estimateGas
  2. Utilizing tronWeb.trx.transactionBuilder.estimateEnergy().
  3. The actual energy cost when transaction is confirmed

They display distinct values.

start940315 commented 7 months ago

How did you call those methods and what's the result of them? Please give us more details.