@swapkit/wallet-keystore

Installation

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

Integration

Implementation with @swapkit/core

import { SwapKit } from '@swapkit/core'
import { keystoreWallet } from '@swapkit/wallet-keystore'

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

const phrase = "elephant car hammer ..."
const index = 0
const supportedChains = [Chain.Arbitrum, Chain.Avalanche, Chain.Binance,
  Chain.BinanceSmartChain, Chain.Bitcoin, Chain.BitcoinCash, Chain.Chainflip,
  Chain.Cosmos, Chain.Dash, Chain.Dogecoin, Chain.Ethereum, Chain.Kujira,
  Chain.Litecoin, Chain.Maya, Chain.Optimism, Chain.Polkadot, Chain.Polygon,
  Chain.THORChain,
]

await swapKitClient.connectKeystore(supportedChains, phrases, index)

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

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