Skip to main content
The LI.FI SDK package provides access to the LI.FI API to find and execute the best on-chain and cross-chain routes across various bridges and exchanges.

Installation

Ecosystem Providers

To execute transactions, install the provider packages for the ecosystems you need:
Provider packages are only required if you want to execute routes/quotes through the SDK. If you only need to request routes, quotes, or other API data, the core @lifi/sdk package is sufficient.
Each provider bundles its ecosystem library, but you configure a provider by handing it a wallet or client object that you construct. Anything you import in your own code must be a direct dependency — package managers that do not hoist transitive packages, such as pnpm, will otherwise fail to resolve it. That is why the ecosystem library is installed alongside the provider above.The Stellar provider is the exception: it takes a small StellarWallet interface it defines itself. To discover and connect browser wallets such as Freighter, xBull, or Lobstr, also install Stellar Wallets Kit (@creit.tech/stellar-wallets-kit), which the Stellar examples import.
Check out our complete examples in the SDK repository, and feel free to file an issue if you encounter any problems.

Quick Start

1

Set up the SDK

Firstly, create SDK client with your integrator string.
2

Request a quote

Now you can interact with the SDK and for example request a quote.
You can learn more about configuring the SDK in the next section.