freezebalancev2
, initiating the unstaking process with a 14-day waiting period before tokens become available for withdrawal. This is the current recommended unstaking method.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
owner_address
— the address that owns the staked TRX to unstake (hex format)unfreeze_balance
— the amount of TRX to unstake (in sun, where 1 TRX = 1,000,000 sun)resource
— the resource type to release (“BANDWIDTH” or “ENERGY”)visible
— optional boolean to specify address format (default: false for hex format)
Response
visible
— boolean indicating address format usedtxID
— transaction ID hashraw_data
— raw transaction data objectraw_data_hex
— hexadecimal representation of raw transaction data
Use case
Thewallet/unfreezebalancev2
method is used for:
- Unstaking TRX using the current staking mechanism.
- Initiating the 14-day unstaking period before tokens become withdrawable.
- Managing bandwidth and energy resource allocation by reducing staked amounts.
- Flexible unstaking of partial amounts rather than all-or-nothing.
Body
application/json