Skip to main content

Connect & Disconnect

onProvidersChanged(callback) returns an unsubscribe function. It fires when EIP-6963 providers come and go (browser only).

Adapters

For type-safe lazy imports, use 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:
These methods are MetaMask-specific — they no-op on other EVM adapters.

EIP-6963 Discovery

The SDK ships an EIP6963Store that auto-tracks provider announcements:
Use this to render a wallet picker that includes every browser-installed provider, not just the ones your app pre-defines.

Connection Events

LeoKitClient extends EventEmitter<LeoKitEvents>: