prepare_tron_unfreeze
Begins the 14-day cooldown on a frozen TRX slice by building an unsigned UnfreezeBalanceV2 transaction. Requires amount not exceeding frozen balance for the resource (bandwidth or energy).
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"amount": "<amount>",
"resource": "<resource>"
},
"name": "prepare_tron_unfreeze"
}
}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. |