Use the npx agnic@latest trade command to swap tokens on Base network. You must be authenticated to trade.
If the wallet is not authenticated, refer to the authenticate-wallet skill.
| amount | Amount to swap (see Amount Formats below) | | from | Source token: alias (usdc, eth, weth) or contract address (0x...) | | to | Destination token: alias (usdc, eth, weth) or contract address (0x...) |
Swap or trade tokens on Base network. Use when you or the user want to trade, swap, exchange, buy, sell, or convert between tokens like USDC, ETH, and WETH. Covers phrases like "buy ETH", "sell ETH for USDC", "convert USDC to ETH", "get some ETH", "swap tokens", "trade USDC for WETH". Source: agnicpay/agnic-wallet-skills.