How swapping tokens works
You choose the token you have, the token you want and the amount. A swap service finds liquidity for that pair and returns a quote: how much you should receive, the minimum you will accept, and the fees. When you confirm, a smart contract takes your token and sends the new one in the same transaction, or the transaction fails and nothing is exchanged.
Selling an ERC-20 token adds one step the first time: an approval transaction that lets the swap contract move that token for you.
Three kinds of token swap
What happens behind the button depends on where the two tokens live.
Same-chain swaps
Both tokens are on the same network, for example USDC to ETH on Ethereum. A DEX or aggregator routes the trade through on-chain pools and it settles in one transaction.
Cross-chain swaps
The tokens are on different networks, for example USDT on Ethereum to USDT on Tron. An engine takes your token on the source chain and delivers the target token on the destination chain, usually within seconds to minutes.
Swaps from non-EVM chains
Bitcoin, Solana and Tron have no EVM wallet to connect, so some engines give you a deposit address instead. You send to it and receive the target token at the address you entered.
What a token swap costs
Network gas pays for the transaction and is charged in the network's native coin. The route charges its own fee, which may include a pool fee, a bridge fee or a service fee. Price impact is the cost of your own trade moving the price, and it matters more for large amounts and smaller tokens.
Headline rates leave some of these out, which is why MultiSwap ranks routes by the net amount that reaches your wallet after fees and estimated gas.
Token swap vs selling on an exchange
On a centralized exchange you deposit, sell for one asset, buy another and withdraw, paying fees at each step and waiting on the exchange to release funds. A non-custodial token swap does the exchange in a single transaction from your own wallet. You give up the exchange's order types, and in return there is no deposit, withdrawal or account.
What to check before you swap
Check the network of both tokens, since the same ticker exists on many chains. Check the minimum received, not just the expected amount. Keep enough of the native coin for gas, and approve only the amount you are swapping.