Before you start
- A funded wallet (fund →)
- A little SUI for gas — swaps are not gasless (Example A leaves you with some)
Example A — USDC → SUI
Example B — USDC → MANIFEST (full coin type)
Known symbols (USDC, SUI, USDsui, …) work by name. Everything else uses
the full coin type — decimals resolve on-chain:
t2000_swap_quote returns a
serializedRoute; pass it to t2000_swap and the quoted route executes as
shown or the swap fails loud with a re-quote instruction (quotes hold ~30s) —
never a silent re-route.
Check it worked
- Each execute prints the on-chain digest and the amount received
t2 balanceshows the new tokens (unknown types appear amount-only)
Stuck?
- “Insufficient SUI” — swaps execute DEX contracts and pay their own gas. Run Example A first, or keep ~0.05 SUI on hand.
- Slippage abort — the default cap is 1% and the swap aborts rather than
fill past it. For thin pairs raise it explicitly:
--slippage 2. - Blocked by limits — swaps count against your spending caps;
t2 limit showexplains (fees & limits).
