Li.fi SDK CLI

Interactive CLI to fetch and compare best cross-chain routes using LI.FI SDK

Li.fi SDK CLI

Created At

HackMoney 2026

Project Description

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.

How it's Made

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.

background image mobile

Join the mailing list

Get the latest news and updates

Li.fi SDK CLI | ETHGlobal