Introduction
A transfer sends SOL or tokens from the wallet using a role with the matching asset allowance.- Use when: your application pays a recipient from wallet-owned funds.
- For: payment flows, withdrawal screens, and automated disbursements.
How it works
- Fetch the wallet and use its wallet address as the source or token-account owner.
- Choose a role with access to the transfer program and the required spending budget.
- Build the transfer in integer base units and authorize it through Swig.
- Sign, submit, and confirm the returned transaction instructions.
Transfer inputs
For tokens, create the recipient token account first if it does not exist. This example uses the original SPL Token program.
SDK example
SOL
The SOL signing example builds a 0.001 SOL transfer. Send its result using Sending transactions.SPL tokens
Install the token client:trueallows the wallet’s program-derived address to own the associated token account.- Grant
tokenLimit({ mint, amount })or a matching recurring/destination permission alongside Token Program access. - This example uses an Ed25519 role. Other authorities supply their signing options.
- Send and confirm the returned instructions with the role signer and payer.

