30 Compute Units.
Unlock the TRX staked at the Stake 2.0 stage through this interface. After unstaking, the user needs to wait for 14 days before calling the /wallet/withdrawexpireunfreeze interface to withdraw the funds of this unstaking. When executing unstaking, if there is a previously unstaked funds that has passed the lock-up period, then this unstaking operation will also withdraw the unstaked funds that has passed the lock-up period to the account at the same time. You can query the amount of funds withdrawn in this transaction through gettransactioninfobyid API.
Parameters
owner_address- String, required - Owner address, default hexStringunfreeze_balance- int64, required - The amount of TRX to unstake, in sunresource- String, required - TRX stake type, ‘BANDWIDTH’ or ‘ENERGY’Permission_id- int32 - Optional, for multi-signature usevisible- Boolean - Optional. Specifies whether the address is in Base58 format (default: false).
Returns
Transaction object - JSON object: Unsigned transaction, please refer to the Transaction chapter for the fields contained in it. Since the transaction type isUnfreezeBalanceV2Contract, the fields contained in raw_data.contract[0].parameter.value in the transaction are as follows: