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.

GuideClientDescription
How to Start a Local ValidatorSolana CLISet up and run a local Solana validator
Connecting to a Solana EnvironmentJavaScript, PythonConnect to different Solana networks
Getting Test SOLJavaScript, PythonObtain SOL tokens for testing
Subscribing to EventsJavaScript, PythonListen to Solana program events
Using Mainnet Accounts and ProgramsSolana CLIWork with production accounts and programs

Wallet Management

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

GuideClientDescription
How to Create a KeypairJavaScript, PythonGenerate new Solana keypairs
How to Restore a KeypairJavaScript, PythonRecover existing keypairs
How to Verify a KeypairJavaScript, PythonValidate keypair authenticity
How to Validate a Public KeyJavaScript, PythonCheck public key validity
How to Generate Mnemonics for Keypairsbip39Create seed phrases
How to Restore a Keypair from a MnemonicJavaScript, bip39Recover keypairs using seed phrases
How to Generate a Vanity AddressSolana CLICreate custom addresses
How to Sign and Verify a MessageJavaScript, PythonMessage signing and verification
How to Connect a Wallet with ReactReact, JavaScriptIntegrate wallets in React apps

Transaction Operations

Explore various transaction-related operations on the Solana blockchain.

GuideClientDescription
How to Send SOLJavaScript, PythonTransfer SOL between accounts
How to Send TokensJavaScript, PythonTransfer SPL tokens
How to Calculate Transaction CostJavaScript, PythonEstimate transaction fees
How to Add a Memo to a TransactionJavaScript, PythonInclude memos in transactions
How to Add Priority Fees to a TransactionJavaScript, PythonSet transaction priorities
How to Optimize Compute RequestedJavaScript, PythonImprove transaction efficiency
Offline TransactionsJavaScript, PythonHandle offline operations

Account Management

Learn how to manage Solana accounts effectively.

GuideClientDescription
How to Create an AccountJavaScript, PythonCreate new Solana accounts
How to Calculate Account Creation CostJavaScript, PythonEstimate account costs
How to Create a PDA's AccountJavaScript, RustWork with PDAs
How to Sign with a PDA's AccountRustPDA signing operations
How to Close an AccountRustRemove accounts
How to Get Account BalanceJavaScript, PythonCheck account balances

Token Operations

Comprehensive guides for working with tokens on Solana.

GuideClientDescription
How to Create a TokenJavaScript, PythonCreate new tokens
How to Get a Token MintJavaScript, PythonAccess token mints
How to Create a Token AccountJavaScript, PythonSet up token accounts
How to Get a Token AccountJavaScript, PythonRetrieve token accounts
How to Get a Token Account's BalanceJavaScript, Rust, PythonCheck token balances
How to Mint TokensJavaScript, PythonCreate new tokens
How to Transfer TokensJavaScript, PythonMove tokens between accounts
How to Burn TokensJavaScript, PythonRemove tokens from circulation
How to Close Token AccountsJavaScript, PythonClean up token accounts
How to Set Authority on Token Accounts or MintsJavaScript, PythonManage token permissions
How to Delegate Token AccountsJavaScript, PythonSet up token delegation
How to Revoke a Token DelegateJavaScript, PythonRemove delegates
How to Use Wrapped SOLJavaScript, PythonWork with wrapped SOL
How to Get All Token Accounts by AuthorityJavaScript, PythonList token accounts
How to Create an NFTJavaScriptMint NFTs
How to Fetch the NFT MetadataJavaScriptFetch NFT metadata
How to Get the Owner of an NFTJavaScriptFind NFT ownership
How to Get All NFTs from a WalletJavaScriptList wallet NFTs

Is this page helpful?