Solana 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 |
---|---|---|
How to Start a Local Validator | Solana CLI | Set up and run a local Solana validator |
Connecting to a Solana Environment | JavaScript, Python | Connect to different Solana networks |
Getting Test SOL | JavaScript, Python | Obtain SOL tokens for testing |
Subscribing to Events | JavaScript, Python | Listen to Solana program events |
Using Mainnet Accounts and Programs | Solana CLI | Work with production accounts and programs |
Wallet Management
Learn how to create, restore, and manage Solana wallets using various tools and libraries.
Guide | Client | Description |
---|---|---|
How to Create a Keypair | JavaScript, Python | Generate new Solana keypairs |
How to Restore a Keypair | JavaScript, Python | Recover existing keypairs |
How to Verify a Keypair | JavaScript, Python | Validate keypair authenticity |
How to Validate a Public Key | JavaScript, Python | Check public key validity |
How to Generate Mnemonics for Keypairs | bip39 | Create seed phrases |
How to Restore a Keypair from a Mnemonic | JavaScript, bip39 | Recover keypairs using seed phrases |
How to Generate a Vanity Address | Solana CLI | Create custom addresses |
How to Sign and Verify a Message | JavaScript, Python | Message signing and verification |
How to Connect a Wallet with React | React, JavaScript | Integrate wallets in React apps |
Transaction Operations
Explore various transaction-related operations on the Solana blockchain.
Guide | Client | Description |
---|---|---|
How to Send SOL | JavaScript, Python | Transfer SOL between accounts |
How to Send Tokens | JavaScript, Python | Transfer SPL tokens |
How to Calculate Transaction Cost | JavaScript, Python | Estimate transaction fees |
How to Add a Memo to a Transaction | JavaScript, Python | Include memos in transactions |
How to Add Priority Fees to a Transaction | JavaScript, Python | Set transaction priorities |
How to Optimize Compute Requested | JavaScript, Python | Improve transaction efficiency |
Offline Transactions | JavaScript, Python | Handle offline operations |
Account Management
Learn how to manage Solana accounts effectively.
Guide | Client | Description |
---|---|---|
How to Create an Account | JavaScript, Python | Create new Solana accounts |
How to Calculate Account Creation Cost | JavaScript, Python | Estimate account costs |
How to Create a PDA's Account | JavaScript, Rust | Work with PDAs |
How to Sign with a PDA's Account | Rust | PDA signing operations |
How to Close an Account | Rust | Remove accounts |
How to Get Account Balance | JavaScript, Python | Check account balances |
Token Program Instructions
Refer to the Token Program section for code examples.
Is this page helpful?