Skip to main content

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 tracking

Limit Orders

THORChain / MAYAChain native limit orders

Shielded ZCash

WebZjs-backed shielded balance scan and transfer

Utilities

Amount math, chain helpers, asset parsing, error handling, events, icons

Source

The SDK ships its own README.md with a long-form integration walkthrough and a React example.