cryptoexpert

SunSwap Swap Starting With TRX vs a TRC-20 Token: Steps

A SunSwap swap starting with TRX takes one transaction; starting with a TRC-20 token takes an approval transaction followed by a swap when no sufficient allowance exists. The SunSwap exchange lets you trade through TRON liquidity pools using either input. Start with TRX or a TRC-20 token in TronLink, choose what you want to receive, review the quote, and sign the required transactions. The swap is complete when your output token balance updates and TRONSCAN shows a successful transaction.

How the Two Swap Paths Work

On SunSwap, native TRX travels with the swap call, while a TRC-20 token requires permission before the router can move it. An allowance is the amount a token holder authorizes a contract to spend. If the router already has enough allowance for your token and amount, you can go straight to the swap.

Think of TRX as cash handed over with an order and a TRC-20 token as funds in a drawer: approval gives the router a key for a chosen amount. The analogy stops at the transfer. Approval is its own on-chain transaction; it grants permission but leaves the tokens in your wallet until the swap uses them.

Starting with TRX saves that approval transaction and the Energy it would consume. In a SunSwap V2 route, the router wraps the attached TRX into WTRX within the swap transaction, so you do not need to wrap it first. The swap itself still uses Energy, TRON’s measure of smart-contract work. Available staked Energy can cover it; otherwise the network burns TRX for the Energy you use. Keep some TRX available even when your input is a TRC-20 token.

  1. Connect TronLink. Use the wallet holding your input asset and check that it also has TRX available for network resources. When spending TRX, leave a reserve rather than entering the entire balance as the swap amount.
  2. Choose the input and output tokens. Select TRX for the one-transaction path, or select the TRC-20 token you hold. Confirm that the output is the token you intend to receive.
  3. Enter the amount and review the quote. Compare the expected output with the minimum you would accept. Pool liquidity and price movement affect how much you receive, so review the quote again if you change the amount.
  4. Approve a TRC-20 input if prompted. In TronLink, verify the token, spender and allowance before signing. Set the allowance to the amount you plan to swap instead of an unlimited amount. Wait for the approval to succeed; your token balance should remain the same at this stage. A TRX input skips this step.
  5. Confirm the swap. Sign the swap transaction in TronLink. With TRX as input, the router receives and wraps it in that transaction. With a TRC-20 input, the router uses the allowance to take the approved tokens for the trade. Both routes need enough resources to execute.
  6. Verify the result. Look for the increased output token balance in your wallet and a successful swap transaction on TRONSCAN. If the balance has not refreshed, check the transaction status before trying the swap again.

What Is WTRX and Why Does It Appear in SunSwap Pools?

WTRX is the TRC-20 wrapped form of native TRX. SunSwap V2 pools hold WTRX so TRX can trade alongside other TRC-20 tokens. A TRX-input swap converts it inside the router transaction; seeing WTRX in the route does not mean you must send a separate wrapping transaction.

TokenPocket is another example of a TRON-compatible wallet. For a swap, any wallet you use needs to connect to the exchange and sign TRON smart-contract transactions; verify that connection before moving funds to a new wallet. With TronLink already funded, choose your input asset and follow the matching path above.