Swap XLM ↔ USDC
Agents can swap between XLM and USDC on the Stellar DEX.1
Fund and trustline
Fund XLM. If swapping into USDC, open a Circle USDC trustline from Connect if needed.
2
Quote
Call
get_swap_quote with from_asset, to_asset, and amount.3
Swap
Call
swap with the same fields. Optional max_slippage_bps (default 100 = 1%). Large notional may require confirmation.