Skip to main content

SatsTerminal SDK

The SDK is modular. You can install the all-in-one package or pick individual products:
  • satsterminal-sdk (suite): exports the legacy swaps client (SatsTerminal) and factories for swaps/borrow/bridge via createClient.
  • @satsterminal-sdk/swaps: swaps-only package.
  • @satsterminal-sdk/borrow: borrow-only package.
  • @satsterminal-sdk/bridge: bridge BTC Runes to Spark wRunes and back, plus USDC -> USDB on Spark.

Installation options

Minimal examples

Suite with shared apiKey:
Swaps-only (legacy surface):
Borrow-only: