@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

Supported ChainsToolbox

[Chain.Cosmos, Chain.THORChain,

Chain.Binance, Chain.Maya, Chain.Kujira]

[Chain.Ethereum, Chain.Avalanche, Chain.BinanceSmartChain, Chain.Arbitrum, Chain.Optimism, Chain.Polygon]

[Chain.Polkadot, Chain.Chainflip]

[Chain.Bitcoin, Chain.BitcoinCash, Chain.Dash, Chain.Dogecoin, Chain.Litecoin]

Last updated