THORSwap SwapKit
Ask or search…
K
Links
💸

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

Example:

import { SwapKitCore, Chain, DerivationPath } from '@swapkit/core'
const client = new SwapKitCore()
client.extend({
config: {
stagenet?: boolean;
/**
* @required for AVAX, BSC, ARB, MATIC & OP
*/
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: