Introduction
The Solana Protocol SDK lets your application create a Swig wallet, assign access, and execute transactions through a Solana RPC connection.- Use when: you want to control wallet creation, authorization, and transaction submission in your application.
- For: developers integrating wallets into apps, payment flows, and automated services.
How it works
- Create a wallet and keep its config address and asset-holding wallet address.
- Give each signer a role: an authority identifies who can approve; permissions define what it can do.
- Build the instructions for a transfer, swap, or other wallet action.
- Authorize with the selected role, sign the Solana transaction, then submit and confirm it.
Wallet structure
Flow
SDK example
Install the SDK for your application:- These TypeScript examples use Classic with Web3.js 1.x. Solana Kit applications can use
@swig-wallet/kit. - Use a Solana RPC connection, a funded fee payer, and a compatible Swig deployment.
- Start with Create a wallet, or derive an address first with Counterfactual creation.
Authorities
Permissions and transactions
- Choose spending limits, program access, and administrative permissions.
- Grant authorization lock permission to hold, capture, and release funds.
- Add a role or remove a role as access changes.
- Authorize instructions, then send the transaction.

