Skip to main content

Introduction

Transfer moves SOL or tokens from a Swig wallet to another account. Use it for payments, withdrawals, or distributing funds to several recipients. The SDK prepares transactions for the selected role; your application signs and submits them. Use clients from Client setup.

SDK examples

Choose the wallet

Use an existing config and the authority that will authorize the transfer.

Transfer SOL

Send a positive amount in lamports to a Solana address.

Transfer a token

Send base units to a recipient owner. The backend resolves associated token accounts and prepares destination-account creation when needed.

Group transfers

Prepare an ordered plan containing multiple SOL and token transfers.
TypeScript/Python return an ordered transaction list. Sign and submit it in order. Rust accepts a response containing exactly one transaction, even when that transaction holds multiple operations.

Input

Use bigint or decimal strings for large TypeScript amounts, Python integers, and Rust u64. Rust supports Ed25519, secp256r1, and ParticipantSet requesters. For a participant set, compile member approvals before signing the outer transaction. See Signing for embedded requests and native signer requirements.

Errors