THORSwap SwapKit
Search
⌃K
💸

Wallets

Swapkit SDK is composed from modular toolboxes & wallets which can work separately.
Each wallet need specific Toolbox installed to work properly. Check Integrations section under chosen wallet
Chain
Wallets
Bitcoin (BTC)
​Ledger, Keystore, XDEFI, Trezor​
Bitcoin Cash (BCH)
​Ledger, Keystore, XDEFI, Trezor​
Litecoin (LTC)
​Ledger, Keystore, XDEFI, Trezor​
Dogecoin (DOGE)
​Ledger, Keystore, XDEFI, Trezor​
Ethereum (ETH)
Avalanche (AVAX)
Binance Smart Chain (BSC)
THORChain (THOR)
​Ledger, Keystore, XDEFI​
Gaia (ATOM)
​Ledger, Keystore, XDEFI, Keplr​
Binance (BNB - BEP2)
​Ledger, Keystore, XDEFI​

Example:

import { Chain, DerivationPath } from '@thorswap-lib/types'
import { SwapKitCore } from '@thorswap-lib/swapkit-core'
​
const client = new SwapKitCore()
​
client.extend({
config: {
stagenet?: boolean;
/**
* @required for AVAX & BSC
*/
covalentApiKey?: string;
/**
* @required for ETH
*/
ethplorerApiKey?: string;
/**
* @required for BTC, LTC, DOGE & BCH
*/
utxoApiKey?: string;
/**
* @required for Walletconnect
*/
walletConnectProjectId?: string;
/**
* @optional for Trezor config
*/
trezorManifest?: {
email: string;
appUrl: string;
};
};
wallets: [ledgerWallet, xdefiWallet],
});
​
await client.connectXDEFI([Chain.BTC, Chain.ETH, Chain.AVAX])
// OR
await client.connectLedger(Chain.ETH, DerivationPath.ETH)

Custom Wallet Integration

// TODO: