> ## Documentation Index
> Fetch the complete documentation index at: https://layerswaplabsv0-main-depositactionsguide.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SVM (Solana) Wallet

## Overview

The Solana (SVM) wallet provider supports Phantom, Solflare, Backpack, and all Solana wallet adapter compatible wallets.

## Installation

<CodeGroup>
  ```typescript yarn theme={"system"} theme={null}
  yarn add @layerswap/wallet-svm
  ```

  ```typescript pnpm theme={"system"} theme={null}
  pnpm add @layerswap/wallet-svm
  ```

  ```typescript npm theme={"system"} theme={null}
  npm install @layerswap/wallet-svm
  ```
</CodeGroup>

## Basic Usage

```typescript theme={null}
import { LayerswapProvider, Swap } from "@layerswap/widget"
import { createSVMProvider } from "@layerswap/wallet-svm"
import "@layerswap/widget/index.css"

export const App = () => {
  const svmProvider = createSVMProvider({
    walletConnectConfigs: {
      projectId: "YOUR_WALLETCONNECT_PROJECT_ID",
      name: "Your App Name",
      description: "Your app description",
      url: "https://yourapp.com",
      icons: ["https://yourapp.com/icon.png"]
    }
  })

  return (
    <LayerswapProvider
      walletProviders={[svmProvider]}
    >
      <Swap />
    </LayerswapProvider>
  )
}
```

***

## Configuration

### WalletConnect Configuration

The Solana provider requires WalletConnect configuration:

```typescript theme={null}
import { createSVMProvider } from "@layerswap/wallet-svm"
import type { WalletConnectConfig } from "@layerswap/wallet-svm"

const walletConnectConfigs: WalletConnectConfig = {
  projectId: string,      // Required: Your WalletConnect project ID
  name: string,           // Required: Your app name
  description: string,    // Required: Your app description
  url: string,            // Required: Your app URL
  icons: string[]         // Required: Array of logo URLs
}

const svmProvider = createSVMProvider({ walletConnectConfigs })
```

Get your WalletConnect project ID at [WalletConnect Cloud](https://cloud.walletconnect.com/).
