Products

Cross-chain swaps in TypeScript.

The open-source SwapKit SDK bundles quotes, wallet connections and signing for 30+ chains in one package.

01

One package instead of a stack.

Building swaps yourself means a wallet library, a signer and an RPC client for every chain. The SDK wraps them, so you connect a wallet, quote across providers and swap with a single call.

02

How it works

  1. 1

    Create a client

    Set up SwapKit once with your API key.

  2. 2

    Connect wallets

    Browser extensions, hardware wallets or WalletConnect, through one interface.

  3. 3

    Quote and swap

    Get routes across every provider and execute the best one.

TypeScript
import { Chain, createSwapKit, SwapKitApi } from "@swapkit/sdk";

const swapKit = createSwapKit({ config: { apiKeys: { swapKit: apiKey } } });

const { routes } = await SwapKitApi.getSwapQuote({
  sellAsset: "BTC.BTC",
  buyAsset: "ETH.ETH",
  sellAmount: "0.05",
  sourceAddress: swapKit.getAddress(Chain.Bitcoin),
  destinationAddress: swapKit.getAddress(Chain.Ethereum),
});

const txHash = await swapKit.swap({ route: routes[0] });

03

What's inside

Swap plugins

Routing for THORChain, Maya, Chainflip, NEAR Intents, Garden, Harbor, EVM and Solana providers.

Chain toolboxes

UTXO, EVM, Cosmos, Solana, TRON, TON, Sui, Ripple, Stellar, Cardano, Starknet and more.

Wallet connections

MetaMask, Phantom, Ledger, Trezor, KeepKey, Keplr, OKX, Bitget, WalletConnect and others.

View the SDK on GitHub →

04

Turn swaps into revenue

Set your own affiliate fee, anywhere from 0 to 1,000 bps. It's added to every swap your users make and paid to your addresses automatically, with volume and earnings tracked per app in the dashboard.

Your fee
You choose
Payout
Automatic, on-chain
SwapKit fee
0.10–0.15%
See pricing and an earnings example →

05

Questions

Is the SDK open source?

Yes. The SDK and its toolboxes are on GitHub; the hosted API is a managed service.

Do I need the SDK to use SwapKit?

No. The REST API works from any language. The SDK saves work in TypeScript apps.

Which wallets can users connect?

Browser extensions such as MetaMask and Phantom, hardware wallets such as Ledger, Trezor and KeepKey, and WalletConnect.

Ship cross-chain swaps this week.

One integration for 10,000+ assets across 30+ chains, with limit orders and Hyperliquid deposits included. Non-custodial by design.