'How to estimate TRC20 token transfer gas fee
I am looking for a method to estimate bandwidth/gas transfer for TRC20 tokens. Like we have in Ethereum
myContract.methods.myMethod(123).estimateGas({from: 'ERC20 address'})
.then(function(gasAmount){
...
})
.catch(function(error){
...
});
Studied TRON documentation but did not found any relative method. Any help would be appreciated. Thanks in advance.
Solution 1:[1]
To those who is searching for a solution, use getChainParameters method in tronweb or trongrid api.
https://developers.tron.network/reference/getchainparameters
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Ehsan Bigzad |