Change the fee when interacting with the smartcontact USDT in Tron network. #2786
Replies: 3 comments 2 replies
-
It turns out that the fee that is specified before confirming the transaction - not correct. I understand that this is the maximum possible fee, right? Because when I sent 10 USDT (TRC20) and then looked up the transaction in explorer, I saw a fee of 6.15 TRX. Before sending it off, I saw this, though: |
Beta Was this translation helpful? Give feedback.
-
Most likely fee isn't calculated correctly as TRON's fee calculation is very complex, especially for TRC20 transfers. In order to do the correct calculation you need to keep in mind the account you're sending to, amount of energy your account got and bandwidth:
We're using wallet-core in our integration and added a simple algorithm:
|
Beta Was this translation helpful? Give feedback.
-
you're doing it wrong. parameter should be without function selector, in your case: and also you need to check the result of
So if you adjust parameter you'll get a correct estimation:
NOTE: to make this work your account (sender) must have both TRX and USDT tokens on the balance. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
USDT (TRC20) transactions in Trust Wallet are, on average, three times higher than in Exodus or Tronlink.
Describe the solution you'd like
Reduce the fee to Exodus or Tronlink values.
Additional context
I like Trust Wallet far more than the glitchy, slow and overloaded with unnecessary features Exodus. But, when you work on OTC (out-of-counter) and you have a lot of outgoing transactions, there's no desire to pay three times the fee of the other wallets I listed.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions