Skip to main content

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

  1. Create a wallet and keep its config address and asset-holding wallet address.
  2. Give each signer a role: an authority identifies who can approve; permissions define what it can do.
  3. Build the instructions for a transfer, swap, or other wallet action.
  4. 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

Use cases

  • Transfers: send SOL or tokens.
  • Swaps: trade wallet-owned assets.
  • Recovery: replace a lost signer through a guardian.