Skip to main content
Version: 6.0.3

getCanWithdrawUnfreezeAmount

Query an account under the V2 interface, if you operate WithdrawExpireUnfreeze to withdraw the principal, the amount of withdrawal principal that can be obtained. (v5.1.0 new interface)

Usage​

tronWeb.trx.getCanWithdrawUnfreezeAmount(address, timestamp, options);

Parameters​

ParametersParameter DescriptionData Type
addressaccount address (base58 or hex)String
timestampquery cutoff timestamp(millisecond), larger than 0, default is Date.now()Integer
optionsOptional. Default is { confirmed: true }. If options.confirmed is true, the result is queried from solidity node.{ confirmed: boolean }

Return​

Object

Example​

await tronWeb.trx.getCanWithdrawUnfreezeAmount('TMVQGm1qAQYVdetCeGRRkTWYYrLXuHK2HC', Date.now());
> {
"amount": 9000000
}