Skip to the article
Blocktide

Crypto markets, chains and policy

How to Swap TRC-20 Tokens on SunSwap with TronLink

Learn how to use SunSwap for a first TRC-20 swap: connect TronLink, approve the token, set slippage, confirm the trade, then verify the balance and transaction.

By The Blocktide Editors5 min read

How to Swap TRC-20 Tokens on SunSwap with TronLink

SunSwap lets you swap TRC-20 tokens by connecting TronLink, approving the input token, setting slippage, and confirming the trade. The SunSwap site is where you can access the exchange; this walkthrough adds the wallet and transaction context for making one swap. Start with TRX in your wallet for both the approval and the swap, then check that the new token appears in TronLink and the transaction succeeds on TRONSCAN.

How do you make your first SunSwap trade?

A pool-based exchange works differently from a centralized exchange: your tokens stay in your wallet until you sign transactions, and each trade uses liquidity pools. On TRON, those transactions consume Energy and Bandwidth. When your wallet lacks enough of either resource, TRX is burned to cover the cost. Keep extra TRX beyond the amount you plan to swap.

  1. Start with TronLink funded with TRX. Install and open your TronLink wallet, and make sure it holds the TRX you need for transaction costs. The input token’s approval is a separate transaction before your first swap using that token, and that approval also costs TRX. Keep a reserve for both signatures rather than committing your full TRX balance to the trade.
  2. Open the exchange and connect TronLink. Choose the option to connect your wallet and approve the connection in TronLink. Connecting gives the exchange access to your public wallet information; it does not itself approve a token or complete a trade. The wallet confirmation is where you review and sign each transaction.
  3. Select the input and output tokens. Choose the token you will spend and the one you want to receive. Take care when choosing by name: a fake TRC-20 copy can use the same or a similar name as the real token. Match the contract address against a source you trust before selecting it. A familiar label alone is not enough to identify a token.
  4. Enter the amount and review the route. Type how much of the input token you want to swap, then review the estimated output. SunSwap’s Universal Router can route a trade through pools across SunSwap versions. That can affect the route used to complete the swap; focus on the quoted output and minimum received figure before you sign.
  5. Approve the input token if prompted. For a token’s first use, approve it in a separate TronLink transaction before the swap can proceed. This one-time approval authorizes the exchange contract to use that token for trading; it is not the swap itself. Review the approval request and sign it in TronLink. Because it is its own transaction, it consumes TRON resources or burns TRX if the wallet lacks enough Energy or Bandwidth. Later swaps with the same token generally do not need another first-use approval.
  6. Set slippage and confirm the swap. Slippage is the amount of price movement you are willing to accept between the quote and execution. Review the “minimum received” amount: it is the lowest output allowed under your slippage setting. A tighter setting can make a trade fail if the pool price moves beyond it; a looser setting accepts a lower minimum. Choose a setting you understand, then review the swap details and sign the swap transaction in TronLink.
  7. Verify the result. Wait for the transaction to complete, then look for the received token balance in TronLink. Open the transaction on TRONSCAN and confirm its status is successful. The new balance and successful transaction together show the swap finished. If the balance is not immediately visible, verify the transaction first and check that TronLink is displaying the correct token.

What should you check before signing?

The trade amount is only one part of the decision. Confirm the token contract, route, minimum received amount, and remaining TRX for transaction costs. The approval and swap each require a wallet signature, so review which action TronLink is asking you to authorize each time. This is the key difference from a single exchange order: the wallet signs the token approval first, then signs the trade.

Related

How to set slippage on SunSwap

Set slippage by choosing how much the actual output may fall below the quoted amount, then compare that choice with the displayed minimum received. A smaller tolerance protects the minimum more tightly but may leave a moving trade unfilled. A larger tolerance allows more movement and lowers the minimum you agree to receive. Read the figure for your specific trade before signing; it reflects the setting you selected.

Why does SunSwap ask me to approve a token

SunSwap asks for approval so its exchange contract can use the selected TRC-20 input token for a swap. The approval is separate from the trade and costs TRX through the transaction resources. It is generally needed once for each input token before its first use. After the approval succeeds, return to the swap and confirm that transaction separately. Keep watching the minimum received figure and your remaining TRX until the trade is confirmed.