Skip to main content

Install Bitcoin wallet package

To get started, install the latest version of Bitcoin package.
yarn add @layerswap/wallet-bitcoin @bigmi/client @bigmi/core @bigmi/react
Bigmi is modular TypeScript library that provides reactive primitives for building Bitcoin applications.

Basic example

The example below shows how to preconfigure a basic wallet management with native widget package.
import { LayerswapProvider, Swap } from "@layerswap/widget";
import { BitcoinProvider } from "@layerswap/wallet-bitcoin"

export const WidgetPage = () => {
  return (
    <LayerswapProvider 
      config={config}
      walletProviders={[BitcoinProvider]}
    >
      <Swap/>
    </LayerswapProvider>
  );
};