> ## Documentation Index
> Fetch the complete documentation index at: https://docs.li.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# Install LI.FI SDK

> Integrate our LI.FI SDK to your dApp/Wallet/Swap UI

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

<CodeGroup>
  ```typescript yarn theme={"system"}
  yarn add @lifi/sdk
  ```

  ```typescript pnpm theme={"system"}
  pnpm add @lifi/sdk
  ```

  ```typescript bun theme={"system"}
  bun add @lifi/sdk
  ```

  ```typescript npm theme={"system"}
  npm install @lifi/sdk
  ```
</CodeGroup>

### Ecosystem Providers

To execute transactions, install the provider packages for the ecosystems you need:

<CodeGroup>
  ```typescript yarn theme={"system"}
  yarn add @lifi/sdk-provider-ethereum viem                               # For EVM chains
  yarn add @lifi/sdk-provider-solana @wallet-standard/base                # For Solana
  yarn add @lifi/sdk-provider-bitcoin @bigmi/core                         # For Bitcoin
  yarn add @lifi/sdk-provider-sui @mysten/sui                             # For Sui
  yarn add @lifi/sdk-provider-tron @tronweb3/tronwallet-abstract-adapter  # For Tron
  yarn add @lifi/sdk-provider-stellar                                     # For Stellar (no ecosystem library needed)
  ```

  ```typescript pnpm theme={"system"}
  pnpm add @lifi/sdk-provider-ethereum viem                               # For EVM chains
  pnpm add @lifi/sdk-provider-solana @wallet-standard/base                # For Solana
  pnpm add @lifi/sdk-provider-bitcoin @bigmi/core                         # For Bitcoin
  pnpm add @lifi/sdk-provider-sui @mysten/sui                             # For Sui
  pnpm add @lifi/sdk-provider-tron @tronweb3/tronwallet-abstract-adapter  # For Tron
  pnpm add @lifi/sdk-provider-stellar                                     # For Stellar (no ecosystem library needed)
  ```

  ```typescript npm theme={"system"}
  npm install @lifi/sdk-provider-ethereum viem                               # For EVM chains
  npm install @lifi/sdk-provider-solana @wallet-standard/base                # For Solana
  npm install @lifi/sdk-provider-bitcoin @bigmi/core                         # For Bitcoin
  npm install @lifi/sdk-provider-sui @mysten/sui                             # For Sui
  npm install @lifi/sdk-provider-tron @tronweb3/tronwallet-abstract-adapter  # For Tron
  npm install @lifi/sdk-provider-stellar                                     # For Stellar (no ecosystem library needed)
  ```
</CodeGroup>

<Note>
  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.
</Note>

<Note>
  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](https://github.com/Creit-Tech/Stellar-Wallets-Kit) (`@creit.tech/stellar-wallets-kit`), which the Stellar examples import.
</Note>

Check out our complete examples in the [SDK repository](https://github.com/lifinance/sdk/tree/main/examples), and feel free to [file an issue](https://github.com/lifinance/sdk/issues) if you encounter any problems.

## Quick Start

<Steps>
  <Step title="Set up the SDK">
    Firstly, create SDK client with your integrator string.

    ```typescript theme={"system"}
    import { createClient } from '@lifi/sdk';

    const client = createClient({
      integrator: 'Your dApp/company name',
    });
    ```
  </Step>

  <Step title="Request a quote">
    Now you can interact with the SDK and for example request a quote.

    ```typescript theme={"system"}
    import { ChainId, getQuote } from '@lifi/sdk';

    const quote = await getQuote(client, {
      fromAddress: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045',
      fromChain: ChainId.ARB,
      toChain: ChainId.OPT,
      fromToken: '0x0000000000000000000000000000000000000000',
      toToken: '0x0000000000000000000000000000000000000000',
      fromAmount: '1000000000000000000',
    });
    ```
  </Step>
</Steps>

You can learn more about [configuring the SDK](/sdk/configure-sdk) in the next section.
