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 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 usedtxID
— transaction ID hashraw_data
— raw transaction data object containing freeze contract detailsraw_data_hex
— hexadecimal representation of raw transaction data
Use case
Thewallet/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.
Body
application/json