Skip to main content

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

Swap 100 USDC for ETH on Base
Buy $50 of ETH with USDC
Trade 0.01 ETH for USDC
Convert all my USDC to ETH

How it works

The swap tool prepares a token swap and requires your approval in Base Account. Swaps are only supported on mainnet chains — not on testnets.
ParameterRequiredWhat it does
fromAssetYesToken to swap from — symbol (USDC) or contract address
toAssetYesToken to swap to — symbol (ETH) or contract address
amountYesAmount of fromAsset to swap (human-readable decimal)
chainYesTarget 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.

Send tokens

Send tokens directly to another address.

Check balance

Verify balances before swapping.