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) |
지원되는 체인의 분산형 거래소를 통해 토큰을 교환하거나 거래하세요. 귀하 또는 사용자가 USDC, ETH, WETH, SOL 또는 기타 토큰과 같은 토큰을 거래, 교환, 교환, 구매, 판매 또는 전환하려는 경우에 사용하세요. "USDC로 ETH 구매", "USDC로 ETH 판매", "USDC를 ETH로 변환", "토큰 교환", "ETH 받기"와 같은 문구가 포함됩니다. 출처: financedistrict-platform/fd-agent-wallet-skills.