Skip to main content
Recipes are complete, working code examples organized by what you want to build. Each recipe includes full source code you can copy directly into your project. Get started quickly with these commonly used recipes.

Send SOL

Transfer SOL to any wallet address

Social login (Google, Apple)

Let users sign in with Google or Apple and get a wallet

Sign a message

Request a signature from the connected wallet

Check wallet balance

Get SOL and token balances for the connected wallet

All recipes

Authentication

Sign in users with Google, Apple, or browser extension

Payments

Send SOL, USDC, and other tokens

Signatures

Sign messages for agreements and verification

Wallet operations

Check balances and manage token accounts

Transactions

Advanced transaction features and monitoring

Authentication

Connect users to your app with Phantom wallets.

Social login (Google, Apple)

Let users sign in with Google or Apple and get a wallet

Browser extension login

Connect to existing Phantom browser extension wallets

Session management

Keep users logged in across page reloads

Payments

Send and receive tokens on Solana.

Send SOL

Transfer SOL to any wallet address

Send USDC

Transfer USDC stablecoin payments

Send any SPL token

Transfer any SPL token by mint address

Request payment

Generate payment requests with Solana Pay

Signatures

Sign messages for user agreements, terms of service, or data integrity.

Sign a message

Request a signature from the connected wallet

Wallet operations

Check balances, view token accounts, and manage wallet state.

Check wallet balance

Get SOL and token balances for the connected wallet

Get all token accounts

List all SPL token accounts and balances

Transactions

Advanced transaction features for better user experience and monitoring.

Add priority fees

Add priority fees for faster confirmation

Check transaction status

Monitor transaction confirmation and get details

Quickstarts

Get up and running in your framework of choice.

Next.js

Full setup guide for Next.js App Router

React (Vite)

Full setup guide for React with Vite

Vanilla JavaScript

Full setup guide without a framework

React Native

Full setup guide for React Native mobile apps

Example apps

Production-ready example applications on GitHub.

React SDK Demo

Complete React app with all SDK features

Next.js Starter

Production Next.js template

Browser SDK Demo

Vanilla JavaScript implementation

React Native Demo

React Native mobile app example