All-in-one SwapKit SDK package. It contains all wallets, core, api & types installed & exported.
<pnpm|bun> add @swapkit/sdk
import { createSwapKit, Chain, ConnectConfig, ApisType } from '@swapkit/sdk' const config: { apis?: ApisType; excludedChains?: Chain[]; config?: ConnectConfig; rpcUrls?: { [key in Chain]?: string } } = {} const skClient = createSwapKit(config) await skClient.connectLedger(...) const txHash = await skClient.swap(...)
Last updated 7 months ago