@swapkit/sdk

All-in-one SwapKit SDK package. It contains all wallets, core, api & types installed & exported.

Getting started

Installation

<pnpm|bun> add @swapkit/sdk

Usage

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