> ## 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/freezebalancev2 | TRON

> TRON API method that stakes TRX for resources using the new staking mechanism. Reference for wallet/freezebalancev2 on TRON via Chainstack.

TRON API method that stakes TRX for resources using the new staking mechanism. This method freezes TRX tokens to obtain bandwidth or energy resources with improved flexibility, including the ability to unfreeze resources at any time.

## Parameters

* `owner_address` — the address that owns the TRX to freeze (hex format)
* `frozen_balance` — the amount of TRX to freeze (in sun, where 1 TRX = 1,000,000 sun)
* `resource` — the resource type to obtain ("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 containing freeze contract details
* `raw_data_hex` — hexadecimal representation of raw transaction data

## Use case

The `wallet/freezebalancev2` method is used for:

* Staking TRX to obtain bandwidth for free transactions using the new mechanism.
* Freezing TRX to get energy for smart contract execution with improved flexibility.
* Taking advantage of the ability to unfreeze resources without waiting periods.
* Implementing modern TRON staking in wallets and DApps with better resource management.


## OpenAPI

````yaml openapi/tron_node_api/freezebalancev2.json post /95e61622bf6a8af293978377718e3b77/wallet/freezebalancev2
openapi: 3.0.0
info:
  title: wallet/freezebalancev2 TRON API
  version: 1.0.0
  description: Stake TRX for resources (new staking mechanism)
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/freezebalancev2:
    post:
      tags:
        - Resource Management
      summary: wallet/freezebalancev2
      operationId: freezeBalanceV2
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - owner_address
                - frozen_balance
                - resource
              properties:
                owner_address:
                  type: string
                  default: 41608f8da72479edc7dd921e4c30bb7e7cddbe722e
                frozen_balance:
                  type: integer
                  default: 1000000
                resource:
                  type: string
                  enum:
                    - BANDWIDTH
                    - ENERGY
                  default: BANDWIDTH
                visible:
                  type: boolean
                  default: false
      responses:
        '200':
          description: Freeze 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

````