Swap CLI
Use fynd-swap-cli to dry-run and execute swaps against a running Fynd server.
Setup
curl -o docker-compose.swap.yml https://raw.githubusercontent.com/propeller-heads/fynd/main/docker-compose.swap.ymlexport TYCHO_API_KEY=your_tycho_api_key
docker compose -f docker-compose.swap.yml run --rm fynd-shell# Inside the fynd-shell container:
fynd-swap-clidocker compose -f docker-compose.swap.yml downcargo install --path tools/fynd-swap-cliDry-run a swap (ERC-20)
Dry-run a swap (Permit2)
Execute on-chain (ERC-20)
Execute on-chain (Permit2)
Swap using vault funds
CLI Reference
Flag
Env var
Default
Description
Security Notes
Troubleshooting
Last updated