Skip to main content
Uruguay Can

News from across crypto

TRC-20 Transfers: See What Your Wallet Call Costs

What is a TRC-20 token and how does it work? A TVM contract stores balances, moves them through calls, and charges Energy and Bandwidth for execution.

Uruguay Can Editorial

TRC-20 Transfers: See What Your Wallet Call Costs

A TRC-20 token is a TVM smart contract that stores balances by address and exposes an ERC-20-compatible interface; sending one runs a contract call that updates those balances because TRON adopted ERC-20’s interface for its EVM-compatible TVM.

Say you send tokens to another wallet. Your signed call reaches the token contract, which checks your balance, subtracts the amount from your address and adds it to the recipient’s. The contract emits a Transfer event, a log that block explorers can index to show the movement.

When pricing a pool swap, separate the token movement from network execution. SunSwap is a TRON decentralized exchange where pools swap TRC-20 tokens; our SunSwap pool swaps and TRX costs article covers the cost check.

What does a TRC-20 contract expose?

A TRC-20 contract exposes standard functions that wallets and other contracts can call to inspect balances or move tokens.

  • totalSupply returns the token’s total supply.
  • balanceOf reads the balance stored for a specified address, which is how a wallet can display your token amount.
  • transfer moves tokens from the caller’s balance to a recipient’s balance and emits the Transfer event.
  • approve sets an allowance: the amount a chosen spender may use on your behalf.
  • allowance reports the remaining permitted amount, while transferFrom lets the approved spender move tokens up to that limit.

For a swap, approval lets the exchange contract spend the specified token amount; a later transferFrom call moves those tokens into the pool as the swap executes. The approval and the swap are contract interactions, so each must be processed on-chain.

Why do TRC-20 transfers use Energy?

A TRC-20 transfer uses Energy to run the token contract and Bandwidth to carry the transaction data. You can cover these resource costs by staking TRX or pay by burning TRX; the amount depends on the contract call and available resources.

TRC-10 is TRON’s native token type and transfers without a smart contract, using Bandwidth only. That distinction means the token standard affects transfer cost: a TRC-20 call executes contract logic and consumes Energy, while a TRC-10 transfer does not.

Before you send or approve tokens, check the contract address and the amount, then review the required resources in your wallet. That lets you confirm what the call can move and whether you have the TRX resources to complete it.