@swapkit/wallet-xdefi

Installation

<pnpm|bun> add @swapkit/wallet-xdefi

Integration

Implementation with @swapkit/core

import { SwapKit } from '@swapkit/core'
import { xdefiWallet } from '@swapkit/wallet-xdefi'

const swapKitClient = SwapKit({
  wallets: { ...xdefiWallet },
});

await swapKitClient.connectXDEFI([Chain.Bitcoin], derivationPath)

const btcWallet = await swapKitClient.getWalletWithBalance(Chain.Bitcoin)

Wallet Support

Last updated