Skip to main content
The TypeScript protocol SDK surface is split by runtime and abstraction level.

Choose a package

PackageUse it when
@swig-wallet/classicyou are on Web3.js 1.x
@swig-wallet/kityou are on Solana Kit / Web3.js 2.0
@swig-wallet/libyou need shared protocol logic and lower-level helpers
@swig-wallet/coderyou need account or instruction encoding and decoding

What these packages cover

  • instruction building
  • wallet account fetching
  • PDA derivation
  • authority and action helpers
  • version-aware handling for v1 and v2 Swig accounts

Classic vs Kit

@swig-wallet/classic and @swig-wallet/kit cover the same product area, but they target different Solana client stacks.
  • classic returns TransactionInstruction[] and works with Connection
  • kit returns Kit instructions and works with Rpc<GetAccountInfoApi>

API reference

The generated API docs live here: anagrambuild.github.io/swig-ts/modules.html