Interactive CLI to fetch and compare best cross-chain routes using LI.FI SDK
This project is a lightweight CLI tool that allows users to fetch, compare, and display the best cross-chain swap routes for Ethereum-based assets using the LI.FI SDK. Users can interactively select source and destination chains, specify amounts, and see top N swap options with estimated output and gas costs. The project abstracts complex multi-chain routing into a simple, developer-friendly interface, providing a foundation for future automation or integration with wallets and frontend tools.
The CLI is built using TypeScript and Node.js, leveraging the LI.FI SDK to fetch cross-chain swap routes. It uses readline/promises for interactive command-line input and BigInt for precise ETH amount handling. The project supports multiple EVM-based networks including Ethereum, Arbitrum, Base, Linea, Optimism, and zkSync Era. No frontend is required; the focus is on a developer-friendly CLI for querying and analyzing cross-chain swaps quickly.

