> ## 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.

# Bitcoin Wallet

## Overview

The Bitcoin wallet provider supports Unisat, Leather, Xverse, and other Bitcoin wallets using the Bigmi library.

## Installation

<CodeGroup>
  ```typescript yarn theme={"system"} theme={null}
  yarn add @layerswap/wallet-bitcoin @bigmi/client @bigmi/core @bigmi/react @tanstack/react-query
  ```

  ```typescript pnpm theme={"system"} theme={null}
  pnpm add @layerswap/wallet-bitcoin @bigmi/client @bigmi/core @bigmi/react @tanstack/react-query
  ```

  ```typescript npm theme={"system"} theme={null}
  npm install @layerswap/wallet-bitcoin @bigmi/client @bigmi/core @bigmi/react @tanstack/react-query
  ```
</CodeGroup>

[Bigmi](https://github.com/lifinance/bigmi) is modular TypeScript library that provides reactive primitives for building Bitcoin applications.

[**TanStack Query**](https://tanstack.com/query/v5) is an async state manager that handles fetching, caching, synchronizing and more.

***

## Basic Usage

The Bitcoin provider requires no configuration:

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

export const App = () => {
  const bitcoinProvider = createBitcoinProvider()

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