Log in
Menu

TRON Unstake: Why It Takes 14 Days and How to Withdraw or Cancel

Unstaking TRX under Stake 2.0 takes 14 days, then a separate withdrawal. The 32-unstake limit, cancel, votes and delegations, with a real cycle from chain data.

Category
Guides
Published
Reading time
8 min

When you unstake TRX on TRON, the coins stay locked for 14 days and then need one more transaction to return to your spendable balance. The 14 days come from the chain parameter getUnfreezeDelayDays, which was 14 on mainnet as of Nov 21, 2026. Until the wait ends you can cancel, but only all pending unstakes at once, and you can have at most 32 of them running.

Below: the three transactions involved, what the java-tron code checks, what happens to energy, votes and delegations, and one real unstake followed to the withdrawal.

Three transactions: unstake, withdraw, cancel

Stake 2.0 splits getting TRX back into separate steps. Each is a system contract with its own API call, documented on the unstaking page:

Step Contract type API call What it does
Unstake UnfreezeBalanceV2Contract wallet/unfreezebalancev2 Removes an amount of TRX from the stake for ENERGY or BANDWIDTH and starts the wait
Withdraw WithdrawExpireUnfreezeContract wallet/withdrawexpireunfreeze Moves every unstake whose wait has ended to the spendable balance
Cancel CancelAllUnfreezeV2Contract wallet/cancelallunfreezev2 Puts all pending unstakes back into the stake, withdraws those that already expired

None of the three uses energy. In the java-tron source each actuator returns a fee of 0, so they cost only bandwidth: 253 to 255 units in the transactions below, which the 600 free daily bandwidth covers.

What java-tron checks before an unstake

We read the actuators in the java-tron repository (UnfreezeBalanceV2Actuator, WithdrawExpireUnfreezeActuator, CancelAllUnfreezeV2Actuator, develop branch, Nov 20, 2026). The rules they enforce:

  • The 32 limit. The code defines UNFREEZE_MAX_TIMES = 32 and counts unstakes whose wait has not ended yet. At 32, a new unstake fails with “unfreezing times is over limit”. Expired ones that you have not withdrawn do not count, so the fix is to wait for one to expire, not to withdraw. wallet/getavailableunfreezecount returns how many slots are left.
  • Amount. It must be above zero and not more than the stake for that resource that is not delegated to anyone. Delegated TRX is held in a separate field and cannot be unstaked directly.
  • The release time is the timestamp of the latest block already on chain, the one before your unstake’s block, plus getUnfreezeDelayDays × 86,400,000 ms. A day here is exactly 24 hours, not a calendar day, so release comes about 3 seconds short of 14 × 24 hours after your block.
  • Expired unstakes are swept automatically. Each new unstake first withdraws everything that has already expired and records it as withdraw_expire_amount in the receipt.
  • Voting rewards are settled first. Before changing the stake, the code calls withdrawReward, which credits the rewards earned so far to your reward balance. You still claim them with a separate WithdrawBalance.

The delay is a governance parameter (#70 in the docs) and can be changed by a committee vote; how such votes work is in TRON committee proposals. On the Nile testnet it is 1 day, which makes it a practical place to rehearse the whole cycle (Nile testnet).

Energy, votes and delegated resources

Energy stops at once. The same transaction subtracts the amount from your stake and from the network’s total weight. The TRX does not give energy, bandwidth or TRON Power during the 14 days. Your remaining energy follows the usual formula, explained in freeze TRX or rent energy.

Votes shrink only if they have to. Unstaking removes the same amount of TRON Power. If the TRON Power left still covers all your votes, nothing changes, because idle TRON Power is taken first. If it does not, java-tron scales every vote down in proportion: new votes = old votes / total votes × TRON Power left, rounded down. Cancelling later restores the TRON Power but not the votes; the docs say you must vote again.

Delegated resources must come back first. If you delegated energy to another address, UnDelegateResource has to return it before that TRX can be unstaked. If the delegation was locked, you wait until the lock ends, up to 864,000 blocks (about 30 days) as of Nov 21, 2026. The mechanics of locks are in how energy delegation works.

A real unstake, followed to the end

We traced one address through the TronGrid API on Nov 20, 2026. It staked under 40 TRX for energy, so the amounts are small, but the steps are the same for any size. We show only transaction hashes.

Date and time (UTC) Block Transaction Receipt
Oct 19, 2026, 16:02:09 87,250,899 Unstake 20aacc77… 39.29606 TRX from ENERGY, 255 bandwidth
Nov 2, 2026, 16:02:06 none Release time: previous block 87,250,898 (16:02:06) + 14 × 24 hours
Nov 15, 2026, 18:46:30 88,031,489 Withdraw cc63cef9… withdraw_expire_amount 39,296,060 SUN = 39.29606 TRX, 253 bandwidth
Nov 20, 2026, 06:25:45 88,160,618 Unstake ede95798… 39.299753 TRX from ENERGY, 255 bandwidth, nothing to sweep

What the trace shows:

  1. The withdrawal returned exactly the unstaked amount, to the SUN. Stake 2.0 does not charge anything for unstaking.
  2. The TRX waited 13 extra days. It became withdrawable on Nov 2, but nothing happens automatically: the TRX sat in the unstaking list, earning nothing, until the owner sent the withdrawal.
  3. The second unstake has its own clock. Its unfreeze_expire_time in getaccount is Dec 4, 2026, 06:25:42 UTC, 3 seconds short of 14 days after its block.

How often these happen: in 650 mainnet blocks sampled between Nov 18 and Nov 20, 2026 there were 5 unstakes, 7 withdrawals and no cancellations, against 43,771 energy and bandwidth delegations. We found no CancelAllUnfreezeV2 in that sample, so we describe cancellation from the code and docs only.

How to cancel and what you get back

CancelAllUnfreezeV2 has no amount field. It goes through the whole unstaking list:

  • entries still waiting go back into the stake for the same resource, and energy returns immediately;
  • entries already past their release time are withdrawn to your balance in the same transaction.

The receipt shows both: cancel_unfreezeV2_amount per resource and withdraw_expire_amount. If the list is empty, the transaction is rejected (“No unfreezeV2 list to cancel”). To undo only one of several unstakes, cancel all and then unstake again the amounts you still want to release, each with a new 14-day clock.

What the wait costs: a model calculation

While unstaking, the TRX gives no energy. Take about 6,700 TRX, the stake that covered one standard USDT transfer a day as of Nov 21, 2026 (64,285 energy). If you keep sending one transfer a day during the 14 days, you pay for the energy some other way:

  • burning: 64,285 × 100 SUN = 6.4285 TRX a day, 14 × 6.4285 = 90 TRX for the wait;
  • renting 65,000 energy per transfer at the current rate on Dec 3, 2026, 30 SUN per unit for 1 hour: 1.95 TRX a day, 27.3 TRX for the 14 days.

The rate changes. The exact price is shown in the service before you pay, and reference prices are on the pricing page.

Unstaking step by step

  1. Check delegations with wallet/getdelegatedresourceaccountindexv2, and undelegate what you want to release. Check lock end times.
  2. Check free slots with wallet/getavailableunfreezecount. If it is 0, wait for the next release.
  3. Unstake the amount per resource. Note the block time: release is 14 × 24 hours later, minus about 3 seconds.
  4. Vote again if your votes were cut and you still want rewards.
  5. On or after the release time, withdraw. In wallet/getaccount, the unfrozenV2 list shows each unfreeze_amount with its unfreeze_expire_time in milliseconds, next to the frozenV2 stake explained in getaccountresource explained.
  6. Changed your mind? Cancel before the release time, then re-vote.

FAQ

Can I get my TRX back faster than 14 days? No. The delay is a network parameter. Cancelling returns the TRX to the stake, not to your balance.

Does my TRX come back by itself after 14 days? No. It waits until you send a withdrawal, or until your next unstake sweeps it.

Is there a fee for unstaking? No TRX fee and no energy, only about 255 bandwidth per transaction, within the free 600 a day.

Why does my unstake fail? Usually one of three reasons in the code: the amount exceeds your undelegated stake for that resource, 32 unstakes are already pending, or the delegated part is still locked.

Rent energy

UsdtPull sends energy to your address for a set period. The transfer goes through without burning TRX, your keys stay with you and the energy returns on its own afterwards.

Energy rentalUSDT TRC-20
  1. Address and period

    In the app, you enter your wallet address, the amount of energy and the rental period.

  2. Energy on your address

    Energy lands on your address. The delegation is visible in the block explorer.

  3. No TRX burned

    The transfer uses the rented energy instead of your TRX. When the period ends, the energy returns on its own.

Related posts

  1. Guides

    How Long Does a USDT TRC-20 Transfer Take? Each Stage Measured

    A USDT TRC-20 transfer reaches a block in seconds and is final in about a minute. Each stage timed on 340 real transfers, plus what to do if yours is late.

    8 min
  2. Guides

    How Energy Delegation Works on TRON

    TRON energy delegation passes staked energy to another address without moving TRX. How DelegateResource, locks and reclaim work, with a real transaction.

    9 min
  3. Guides

    Is Renting TRON Energy Safe? What a Provider Can and Cannot Do

    Renting TRON energy never needs your key or signature: the provider signs the delegation. What it can and cannot do to your address, and real risks to check.

    8 min