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 DescriptionType
addressaccount address (base58 or hex)String
timestampquery cutoff timestamp(millisecond), larger than 0, default is Date.now()Integer
optionsoptional fieldsObject

Return

Object

Example

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