prepare_tron_freeze
Construct an unsigned Stake 2.0 FreezeBalanceV2 transaction to lock TRX for bandwidth or energy, granting voting power. Pair with voting to earn TRX rewards.
Instructions
Build an unsigned TRON Stake 2.0 FreezeBalanceV2 transaction. Locks TRX to earn bandwidth (fuels plain transfers) or energy (fuels smart-contract calls) and gains proportional voting power. IMPORTANT: freezing alone does NOT accrue TRX rewards — claimableRewards (see get_tron_staking) only grows after the user also votes for a Super Representative. Pair this tool with list_tron_witnesses + prepare_tron_vote for the full reward-earning flow. Unlocking requires a 14-day cooldown via prepare_tron_unfreeze + prepare_tron_withdraw_expire_unfreeze. 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 freeze as a human-readable decimal string (converted to SUN internally). | |
| resource | Yes | Which Stake 2.0 resource to freeze/unfreeze TRX for. `bandwidth` fuels plain transactions; `energy` fuels smart-contract calls. |