Skip to content

Cookbook

The Solana Cookbook is a developer resource that provides examples and references for building applications on Solana. Each example and reference will focus on specific aspects of Solana development while providing additional details and usage examples.

Development Guides

Development guides help developers set up and interact with the Solana ecosystem using various tools and clients.

Guide Client Description
Connecting to Solana Python How to connect to Solana clusters and verify connection
Getting Test SOL Python How to get test SOL for development
Subscribing to Events Python How to subscribe to account and program events
Create Account Python How to create a new account on Solana

Account Management

Learn how to manage Solana accounts effectively.

Guide Client Description
Calculate Account Creation Cost Python Calculate minimum balance for rent exemption
Create PDA Account Python Create Program Derived Address accounts
Get Account Balance Python Retrieve account balance information

Token Operations

Comprehensive guides for working with tokens on Solana.

Guide Client Description
Create Token Python Create a new SPL token
Get Token Mint Python Retrieve token mint information
Create Token Account Python Create an associated token account
Get Token Account Python Retrieve token account information
Get Token Balance Python Check token balance in an account
Mint Tokens Python Mint tokens to an account
Burn Tokens Python Burn tokens from an account
Transfer Tokens Python Transfer tokens between accounts
Close Token Account Python Close and reclaim SOL from token account
Get All Token Accounts Python Get all token accounts by owner
Set Authority Python Change token mint or account authority
Delegate Token Account Python Delegate token account authority
Revoke Delegate Python Revoke delegated authority
Wrapped SOL Python Work with wrapped SOL tokens

Transaction Operations

Explore various transaction-related operations on the Solana blockchain.

Guide Client Description
Send SOL Python Send SOL between accounts
Send Tokens Python Send tokens between accounts
Calculate Transaction Cost Python Calculate transaction fees
Add Memo to Transaction Python Add memo instruction to transactions
Add Priority Fees Python Add priority fees to transactions
Optimize Compute Requested Python Optimize compute units for transactions
Offline Transactions Python Create and sign transactions offline

Wallet Management

Learn how to create, restore, and manage Solana wallets using various tools and libraries.

Guide Client Description
Create Keypair Python Generate new keypairs
Restore Keypair Python Restore keypair from seed phrase
Verify Keypair Python Verify keypair validity
Validate Public Key Python Validate public key format
Sign and Verify Message Python Sign and verify messages

Codebase

Solana Cookbook Examples