prepare_tron_unfreeze
Initiate the 14-day cooldown to unfreeze TRX from Stake 2.0 resources (bandwidth or energy) for use in transactions or smart contracts.
Instructions
Build an unsigned TRON Stake 2.0 UnfreezeBalanceV2 transaction — begins the 14-day cooldown on a previously-frozen slice. The amount must not exceed what's currently frozen for that resource (query get_tron_staking first; TronGrid rejects otherwise with 'less than frozen balance'). After 14 days the slice shows up in pendingUnfreezes with an elapsed unlockAt; call prepare_tron_withdraw_expire_unfreeze to sweep it back to liquid TRX. Returns a preview + opaque handle; forward via send_transaction for USB-HID signing on the paired Ledger.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Base58 TRON owner address (prefix T). | |
| amount | Yes | TRX amount to unfreeze. Must not exceed the currently-frozen amount for the given resource — TronGrid rejects otherwise. | |
| resource | Yes | Which Stake 2.0 resource to freeze/unfreeze TRX for. `bandwidth` fuels plain transactions; `energy` fuels smart-contract calls. |