Docs Swap
Swap
Swap one Solana token for another and know what to check before you sign.
Carbium Swap is the swap app at https://dex.carbium.io. It swaps one Solana token for another. It is non-custodial: Carbium routes your swap across Solana liquidity, and you sign the transaction in your own wallet. Carbium does not hold your funds, and there is no fiat purchase.
Make a swap
- Open https://dex.carbium.io.
- In the first field, labelled From, pick the token you pay with. In the second field, labelled To, pick the token you get. Search by name, symbol or mint address. See Tokens.
- Enter the amount. HALF and MAX fill it in from your wallet balance.
- Read the quote: the amount you get, the rate, the Router fee and Min received.
- If no wallet is connected, press Connect Wallet. Routes and quotes show without one, and you need it only to confirm the swap. See Wallet.
- Press SWAP and approve the transaction in your wallet.
- A notice follows the swap: Waiting for Approval, Approved, Processing Transaction, then Transaction Executed or Transaction Not Executed. After Transaction Executed, the icon in the notice opens the transaction on Solscan.
The button reads SWAP when a quote is ready. Otherwise it names what is missing, such as "Enter the amount", "Insufficient SOL" or "No route for this pair". See Troubleshooting.
Other controls on the card:
- The quote refreshes on its own. Press Refresh to update it now.
- The arrow between the two fields reverses the tokens.
- Share copies a link to the current pair.
What to check before you sign
These values can change if the market moves while your transaction is pending.
| Check | On the card |
|---|---|
| Amount you get | The second field shows the estimated amount, with its dollar value below. |
| Route | The Market badge shows the number of markets in the route. Press it to open the route. |
| Price impact | An indicator beside the dollar value shows it. When the price impact is high, or the dollar value you get is well below the dollar value you pay, the card asks you to confirm first. Above a higher level, the card does not send the swap. |
| Slippage tolerance | Press Settings on the card to change it. The default is 1%. |
| Min received | The lowest amount of the token you get that the swap accepts at your slippage tolerance. If the price moves past it, the swap does not go through. |
| Fees | The Router fee row shows the rate and the amount, in the token you pay with. Its tooltip shows the estimated network fee and the number of hops. |
| SOL for the network fee | When you swap into SOL and your SOL balance is too low for the fee and the temporary account rent, Gasless switches on by itself. The GASLESS indicator on the card shows when it applies. |
The route, price impact, slippage tolerance and Min received are explained on Routes and prices. Fees and Gasless are on Fees.
On a phone
On a narrow screen the From and To labels are hidden. The first field is the token you pay with, the second is the token you get.
A phone browser has no wallet extension, so you connect and swap inside a wallet app's own browser. The connect dialog links to it: see Wallet.
Developers: the quote and swap API is documented at carbium.sh/docs.