A curated collection of code snippets for developers building with SwapKit.
sdk/β snippets showing how to use the SwapKit SDK- organized by protocol (e.g.
thorchain/,maya/,chainflip/)
- organized by protocol (e.g.
api/β working with SwapKit APIs directlyai/β AI-related examples (agents, copilots, autogen integrations)misc/β utilities, helpers, or one-off demos
setup.tsβ initialize SDK + connect walletmintBTCTradeAssets.tsβ mint BTC trade assets withTRADE+memo
- Client
cleanerClientInit.tsxβ simplified SwapKit client initialization (SDK v4)
- Config
totalConfigControl.tsxβ central runtime config management (SDK v4)
- Builders
standardizedBuilders.jsxβ consistent plugin & wallet builders (SDK v4)
- Imports
cleanerImports.tsxβ single-package, tree-shakable import pattern (SDK v4)
- Chains
chainCoverageUpgrades.tsxβ toolbox usage with Solana, XRP, Cosmos, OneKey (SDK v4)
All snippets use placeholders (YOUR_API_KEY, dummy mnemonics).
Never commit real keys or wallet secrets.