Use the fdx call swapTokens command to swap between tokens via decentralized exchanges on any supported chain. Unlike centralized exchange swaps, these execute directly on-chain through DEX protocols.
If the wallet is not authenticated, refer to the authenticate skill.
| --chainKey | Yes | Blockchain to swap on (e.g. ethereum, polygon, base, solana) | | --tokenIn | Yes | Source token — symbol (e.g. USDC, ETH) or contract address | | --tokenOut | Yes | Destination token — symbol or contract address | | --amount | Yes | Amount of tokenIn to swap (human-readable) | | --mode | No | Swap mode (e.g. exact input, exact output) |
Scambia o scambia token tramite scambi decentralizzati su qualsiasi catena supportata. Utilizzalo quando tu o l'utente desiderate scambiare, scambiare, scambiare, acquistare, vendere o convertire tra token come USDC, ETH, WETH, SOL o qualsiasi altro token. Copre frasi come "acquista ETH con USDC", "vendi ETH per USDC", "converti USDC in ETH", "scambia token", "ottieni un po' di ETH". Fonte: financedistrict-platform/fd-agent-wallet-skills.