> ## 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  # For EVM chains (uses viem)
  yarn add @lifi/sdk-provider-solana    # For Solana (uses @solana/kit)
  yarn add @lifi/sdk-provider-bitcoin   # For Bitcoin (uses @bigmi/core)
  yarn add @lifi/sdk-provider-sui       # For Sui (uses @mysten/sui v2)
  yarn add @lifi/sdk-provider-tron      # For Tron (uses tronweb)
  ```

  ```typescript pnpm theme={"system"}
  pnpm add @lifi/sdk-provider-ethereum  # For EVM chains (uses viem)
  pnpm add @lifi/sdk-provider-solana    # For Solana (uses @solana/kit)
  pnpm add @lifi/sdk-provider-bitcoin   # For Bitcoin (uses @bigmi/core)
  pnpm add @lifi/sdk-provider-sui       # For Sui (uses @mysten/sui v2)
  pnpm add @lifi/sdk-provider-tron      # For Tron (uses tronweb)
  ```

  ```typescript npm theme={"system"}
  npm install @lifi/sdk-provider-ethereum  # For EVM chains (uses viem)
  npm install @lifi/sdk-provider-solana    # For Solana (uses @solana/kit)
  npm install @lifi/sdk-provider-bitcoin   # For Bitcoin (uses @bigmi/core)
  npm install @lifi/sdk-provider-sui       # For Sui (uses @mysten/sui v2)
  npm install @lifi/sdk-provider-tron      # For Tron (uses tronweb)
  ```
</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>

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.
