> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# wallet/unfreezebalancev2 | TRON

> TRON API method that unstakes TRX from the new staking mechanism. This method releases TRX tokens that were previously staked using freezebalancev2.

TRON API method that unstakes TRX from the new staking mechanism. This method releases TRX tokens that were previously staked using `freezebalancev2`, initiating the unstaking process with a 14-day waiting period before tokens become available for withdrawal. This is the current recommended unstaking method.

## 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 used
* `txID` — transaction ID hash
* `raw_data` — raw transaction data object
* `raw_data_hex` — hexadecimal representation of raw transaction data

## Use case

The `wallet/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.


## OpenAPI

````yaml openapi/tron_node_api/unfreezebalancev2.json post /95e61622bf6a8af293978377718e3b77/wallet/unfreezebalancev2
openapi: 3.0.0
info:
  title: wallet/unfreezebalancev2 TRON API
  version: 1.0.0
  description: Unstake TRX from the new staking mechanism
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/unfreezebalancev2:
    post:
      tags:
        - Resource Management
      summary: wallet/unfreezebalancev2
      operationId: unfreezeBalanceV2
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - owner_address
                - unfreeze_balance
                - resource
              properties:
                owner_address:
                  type: string
                  default: 41608f8da72479edc7dd921e4c30bb7e7cddbe722e
                unfreeze_balance:
                  type: integer
                  default: 1000000
                resource:
                  type: string
                  enum:
                    - BANDWIDTH
                    - ENERGY
                  default: BANDWIDTH
                visible:
                  type: boolean
                  default: false
      responses:
        '200':
          description: Unfreeze balance v2 transaction
          content:
            application/json:
              schema:
                type: object
                properties:
                  visible:
                    type: boolean
                  txID:
                    type: string
                  raw_data:
                    type: object
                    properties:
                      contract:
                        type: array
                      ref_block_bytes:
                        type: string
                      ref_block_hash:
                        type: string
                      expiration:
                        type: integer
                      timestamp:
                        type: integer
                  raw_data_hex:
                    type: string

````