Client comparison
The current SDK also ships a Python package,
swig-developer-sdk, at the same
version and with the same surface. The other two are TypeScript-only.
Recommended starting point
Use@swig-wallet/developer-sdk or swig-developer-sdk first if your goal is
to:
- create wallets through backend-prepared transactions
- keep the API key on the server
- read wallet balances, activity, and roles
- build authenticated Next.js, NestJS, Fetch, or Python server routes around Swig actions
- submit transactions signed by application-owned wallet or custody code
When to use the other two
- Use
@swig-wallet/apiwhen you mainly want raw REST access to policies, wallet create endpoints, or paymaster endpoints. - Keep
@swig-wallet/developeronly for existing integrations that already depend on its richer policy helpers.
@swig-wallet/developer as deprecated for new integrations.
Policy nuance
@swig-wallet/developer-sdk does expose swig.wallets.getPolicy(policyId), but
that does not make it the rich policy-helper SDK. It returns raw policy
metadata because wallet creation flows need that metadata.
If you need helpers like Actions.canSpendSol() or AuthorityInfo.isSession(),
that is still legacy @swig-wallet/developer territory.

