Install
ethers@^6 is a peer dependency. Optional dependencies (per-chain xchain libraries, ZCash, Solana, etc.) are loaded lazily — only what you actually use is bundled.
The package exposes five entry points:
Create a Client
LeoKitConfig
sdk.getConfig() returns the resolved ResolvedConfig (defaults filled in). sdk.getNetwork() returns the active Network.
End-to-End Swap
Where to Go Next
Wallets
19 adapters: MetaMask, Phantom, Ledger, Keplr, Trust, WalletConnect…
Quotes & Swaps
getQuote, streamQuote, executeSwap, transfer, transaction trackingLimit Orders
THORChain / MAYAChain native limit orders
Shielded ZCash
WebZjs-backed shielded balance scan and transferUtilities
Amount math, chain helpers, asset parsing, error handling, events, icons
Source
- npm:
leokit-sdk - GitHub:
LeoFinance/leokit-sdk
README.md with a long-form integration walkthrough and a React example.