Availability
To swap from your code today, use one of these:- The REST API with your LeoKit API key.
- LeoDex’s public Swap API: one free key, no account, three HTTP calls.
- The
openswapCLI. Packages published by the npm userleodexare ours.
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