solana 0.41 and its async client (AsyncClient),
which needs Python 3.11 or later. Install the tested versions:
Terminal
Cargo.toml (tested with Rust 1.89 and 1.98):
Cargo.toml
spl-token-interface = "1" or
spl-token-2022-interface = "1". Add any other crate an example’s use lines
name; for bincode, use version 1.
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, Rust, Python, Go | Connect to different Solana networks |
| Getting Test SOL | JavaScript, Rust, Python, Go | Obtain SOL tokens for testing |
| Subscribing to Events | JavaScript, Rust, Python, Go | 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, Rust, Python, Go | Generate new Solana keypairs |
| How to Restore a Keypair | JavaScript, Rust, Python, Go | Recover existing keypairs |
| How to Verify a Keypair | JavaScript, Rust, Python, Go | Validate keypair authenticity |
| How to Validate a Public Key | JavaScript, Rust, Python, Go | Check public key validity |
| How to Generate Mnemonics for Keypairs | JavaScript, Rust, Python, Go | Create seed phrases |
| How to Restore a Keypair from a Mnemonic | JavaScript, Rust, Python, Go | Recover keypairs using seed phrases |
| How to Generate a Vanity Address | Solana CLI | Create custom addresses |
| How to Sign and Verify a Message | JavaScript, Rust, Python, Go | Message signing and verification |
| How to Sign with a Keychain Backend | JavaScript | Sign through a key-management backend |
| How to Connect a Wallet with React | React, JavaScript | Integrate wallets in React apps |
| How to Authenticate Users with Solana Wallets Using Supabase | Next.js, Supabase | Sign users in with a wallet signature |
| How to Auto Approve Transactions | Wallets, session keys | Avoid a wallet prompt for every transaction |
Transaction Operations
Explore various transaction-related operations on the Solana blockchain.| Guide | Client | Description |
|---|---|---|
| How to Send SOL | JavaScript, Rust, Python, Go | Transfer SOL between accounts |
| How to Send Tokens | JavaScript, Rust, Python | Transfer SPL tokens |
| How to Calculate Transaction Cost | JavaScript, Rust, Python, Go | Estimate transaction fees |
| How to Add a Memo to a Transaction | JavaScript, Rust, Python, Go | Include memos in transactions |
| How to Add Priority Fees to a Transaction | JavaScript, Rust, Python, Go | Set transaction priorities |
| How to Optimize Compute Requested | JavaScript, Rust, Python, Go | Improve transaction efficiency |
| Partial Signing | JavaScript | Coordinate independent signers |
Account Management
Learn how to manage Solana accounts effectively.| Guide | Client | Description |
|---|---|---|
| How to Create an Account | JavaScript, Rust, Python, Go | Create new Solana accounts |
| How to Calculate Account Creation Cost | JavaScript, Rust, Python, Go | 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, Rust, Python, Go | Check account balances |