GetAvailableUnfreezeCount

Remaining times of executing unstake operation in Stake2.0.

This method will use 30 Compute Units.


Stake 2.0 supports unstaking in batches, but only allows a maximum of 32 unstake operations at the same time.

That is to say, when a user initiates the first unstake operation, before the TRX of the first unstaking arrives and is ready to be withdrawn to his or her account, he or she can only initiate another 31 unstake operations. This can prevent malicious attacks.

Parameters

  • owner_address - String, required - Owner address, default hexString

  • visible - Boolean - Optional. Specifies whether the address is in Base58 format (default: false).

Returns

count - int64 : Remaining times of available unstaking.

// Result
{
  "count": 32
}
curl https://mainnet.tron.validationcloud.io/v1/<YOUR_API_KEY_HERE>/wallet/getavailableunfreezecount \
    -X POST \
    -H "Content-Type: application/json" \
    -d '
{
  "owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",
  "visible": true
}
'

Last updated

Was this helpful?