Summary
Bridge or withdraw from an exchange so funds land on the chain your wallet uses. Swaps are usually same-chain: your agent gets a quote, you read minimum received, slippage, and route in the JSON, then approve. The route (for example LI.FI) is returned by the tool, not typed in. Sponsored gas does not pay the trade amount.
Ask your agent
Need gas on myWallet's chain. Address and chain ID, then best way to fund (withdrawal vs bridge). What do I verify in the UI before I confirm?
Swap 0.01 ETH to USDC on Ethereum mainnet. Look up USDC the right way, get a quote, and show me chain, tokens, minimum I'd receive, slippage, route, and whether gas is sponsored. Don't execute the swap until I say execute.
Cross-check the USDC contract on the quote against a proper token lookup. If it doesn't match or looks like a placeholder, stop.
Before you approve
- Quote matches the chain and tokens you wanted.
- The
routefield makes sense (e.g. LI.FI). If it changes between CLI versions, trust the CLI. - Slippage and minimum received are acceptable for the size you are moving.
If something goes wrong
- Wrong chain: bridge or withdraw before you do more.
- Balance weird after swap: native ETH, WETH, and ERC-20 are different. Query each.
Further reading
- Demos (swap + x402)
- Pay for APIs with x402 (token metadata before swap)
- Fund and send a transaction
- CLI reference (
swap quote,swap send,token)
FAQ
- Do I type LI.FI on the command line?
- No. You pass chain, tokens, amount in wei, optional slippage. The tool picks the route.
swap sendre-quotes so prices aren't stale. If this page and your CLI disagree, trust the CLI.