Solana Wallet Toolkit

Secure, auditable toolkit for Solana wallet generation and vanity addresses — using only official Solana Labs libraries.
🔑 Key Features
- Vanity Address Generation — Generate addresses with custom prefixes/suffixes
- Multi-threaded Search — Parallel generation using all CPU cores
- Rust & TypeScript — High-performance Rust CLI + Node.js library
- Secure File Output — Keypairs saved with 0600 permissions
- Solana CLI Compatible — Output format works with
solana CLI tools
- 100% Offline — No network calls, fully air-gappable
- Auditable Code — Clean, documented source code
⚠️ DISCLAIMER - EDUCATIONAL PURPOSES ONLY - NO LIABILITY
THIS SOFTWARE IS PROVIDED FOR EDUCATIONAL AND RESEARCH PURPOSES ONLY.
DO NOT USE WITH REAL FUNDS WITHOUT THOROUGH SECURITY REVIEW.
The author(s) accept NO LIABILITY for any damages, losses, or consequences arising from the use of this software. By using this software, you acknowledge that you are solely responsible for your actions and any outcomes.
This software is provided "AS IS" without warranty of any kind. The author(s) make no guarantees about the security, correctness, or fitness for any purpose.
ALWAYS:
- Audit the code yourself before any use
- Use hardware wallets for significant funds
- Understand that vanity address generation has inherent risks
- Generate keys on an air-gapped, offline machine
🔒 Security
This toolkit uses ONLY official libraries from Solana Labs. No third-party cryptographic code.
All cryptographic operations (Ed25519 key generation, signing) are handled by these official packages. The toolkit code only provides CLI interface and pattern matching logic.
Non-Cryptographic Dependencies
These standard libraries handle CLI, parallelism, and file I/O — none touch private keys:
| Package | Purpose | Used By |
|---|
clap | CLI argument parsing | Rust |
rayon | Parallel processing | Rust |
serde | JSON serialization | Rust |
zeroize | Secure memory clearing | Rust |
Security Best Practices
- Run offline — Disconnect from the internet when generating wallets
- Audit the code — It's open source, verify it yourself
- Never share private keys or keypair files
- Store secrets securely — Use hardware wallets for significant funds
- Verify file permissions — Keypair files should be
0600 (owner read/write only)
📦 Installation
Rust (Recommended - Fastest)
# Clone the repository
git clone https://github.com/nirholas/solana-wallet-toolkit.git
cd solana-wallet-toolkit/rust
# Build release binary
cargo build --release
# Binary is at target/release/solana-vanity
TypeScript / Node.js
cd solana-wallet-toolkit/typescript
# Install dependencies
npm install
# Build
npm run build
Shell Scripts (Uses solana-keygen)
# Requires Solana CLI tools installed
# https://docs.solana.com/cli/install-solana-cli-tools
cd solana-wallet-toolkit/scripts
chmod +x *.sh
🚀 Usage
Rust CLI
# Generate address starting with "ABC"
./solana-vanity --prefix ABC
# Generate address ending with "XYZ"
./solana-vanity --suffix XYZ
# Both prefix and suffix
./solana-vanity --prefix AB --suffix 99
# Case-insensitive matching
./solana-vanity --prefix abc --ignore-case
# Specify number of threads
./solana-vanity --prefix ABC --threads 8
# Custom output file
./solana-vanity --prefix Sol --output my-wallet.json
# Generate multiple addresses
./solana-vanity --prefix A --count 5
# Estimate time without generating (dry run)
./solana-vanity --prefix ABCD --dry-run
# Quiet mode (just output public key)
./solana-vanity --prefix AB --quiet
TypeScript CLI
# Using ts-node
npx ts-node src/index.ts --prefix ABC
# Or after building
node dist/index.js --prefix ABC --suffix XYZ
TypeScript Library
import { VanityGenerator } from 'solana-vanity-ts';
const generator = new VanityGenerator({
prefix: 'Sol',
ignoreCase: true,
onProgress: (attempts, rate) => {
console.log(`${attempts} attempts, ${rate}/sec`);
}
});