Documentation Index
Fetch the complete documentation index at: https://docs.leokit.dev/llms.txt
Use this file to discover all available pages before exploring further.
Connect & Disconnect
| Method | Returns | Description |
|---|---|---|
connectWallet(type, options?) | Promise<WalletConnection> | Connects an adapter. Adapters are lazy-loaded |
disconnectWallet(type) | Promise<void> | Cleanly disconnects a single adapter |
disconnectAll() | Promise<void> | Disconnects every connected adapter |
getConnectedWallets() | WalletConnection[] | Currently-connected sessions |
isConnected() | boolean | At least one wallet connected? |
getAddress(chain) | string | undefined | Resolved address for a chain |
getAddresses() | Partial<Record<ChainId, string>> | All resolved addresses |
getAvailableWallets() | WalletType[] | Adapters detected in the current environment |
getSupportedWallets() | WalletType[] | All adapters compiled into the SDK |
onProvidersChanged(callback) returns an unsubscribe function. It fires when EIP-6963 providers come and go (browser only).
Adapters
WalletType | Capabilities | Notes |
|---|---|---|
metamask | EVM | EIP-6963 with multi-account support |
coinbase | EVM | Coinbase Wallet |
phantom | EVM, UTXO, Solana | |
ledger | EVM, UTXO, Cosmos | Hardware (WebUSB) |
keystore | EVM, UTXO, Cosmos, Solana, Tron | Encrypted keystore file |
ctrl | EVM, UTXO, Cosmos, Solana | CTRL/XDEFI |
keplr | Cosmos | |
trust | EVM, UTXO, Cosmos, Solana | Trust Wallet |
talisman | Substrate / EVM | |
tronlink | Tron | |
walletconnect | EVM (and others via WC v2) | Requires projectId in ConnectOptions |
vultisig | Multi-chain | |
solflare | Solana, EVM | |
shielded-zcash-keystore | ZCash transparent + shielded | See Shielded ZCash |
hot-wallet | Multi-chain | |
meteor | NEAR | |
okx | EVM, UTXO, Solana | |
near | NEAR | NEAR Wallet |
rabby | EVM |
leokit-sdk/wallets:
Ledger Deep-Dive
@ledgerhq/hw-app-btc@^10.18.0 is required and pinned via the SDK’s optional dependencies.
MetaMask Multi-Account
MetaMask exposes multiple accounts as a single provider. The SDK adds first-class methods for switching and revoking permissions:EIP-6963 Discovery
The SDK ships anEIP6963Store that auto-tracks provider announcements:
Connection Events
LeoKitClient extends EventEmitter<LeoKitEvents>: