Choose a package
| Package | Use it when |
|---|---|
@swig-wallet/classic | you are on Web3.js 1.x |
@swig-wallet/kit | you are on Solana Kit / Web3.js 2.0 |
@swig-wallet/lib | you need shared protocol logic and lower-level helpers |
@swig-wallet/coder | you 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.
classicreturnsTransactionInstruction[]and works withConnectionkitreturns Kit instructions and works withRpc<GetAccountInfoApi>
API reference
The generated API docs live here: anagrambuild.github.io/swig-ts/modules.htmlRelated pages
- Use Kit Package for the Solana Kit-specific path
- Use Action Helpers for action and permission helpers

