Documentation Index
Fetch the complete documentation index at: https://docs.base.org/llms.txt
Use this file to discover all available pages before exploring further.
What you can ask
How it works
Theswap tool prepares a token swap and requires your approval in Base Account. Swaps are only supported on mainnet chains — not on testnets.
| Parameter | Required | What it does |
|---|---|---|
fromAsset | Yes | Token to swap from — symbol (USDC) or contract address |
toAsset | Yes | Token to swap to — symbol (ETH) or contract address |
amount | Yes | Amount of fromAsset to swap (human-readable decimal) |
chain | Yes | Target mainnet chain, e.g. base, ethereum, arbitrum, optimism, polygon, bsc, or avalanche |
Testnet swaps are not supported. If you need to test, use
send on base-sepolia instead.Approval flow
Same as sending — every swap requires approval in Base Account. Your assistant will give you a link to review the swap details before anything is signed.Related guides
Send tokens
Send tokens directly to another address.
Check balance
Verify balances before swapping.