tronprotocol / tronweb

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

How to predict fee for transfer transaction(TRX & USDT) #477

Closed inapeace0 closed 6 months ago

inapeace0 commented 6 months ago

I am seeking guidance on determining the approximate fees for transferring TRX and USDT accurately.

Could you kindly provide a method along with the necessary code?

Thank you.

start940315 commented 6 months ago

You can get the result from tronWeb.transactionBuilder.estimateEnergy