Documentation

Everything you need to get started with the Solana Wallet Toolkit.

Quick Start

Web (This Site)

Use the Tools page directly in your browser. No installation required. All cryptography runs client-side.

Rust CLI (Fastest)

git clone https://github.com/nirholas/solana-wallet-toolkit.git
cd solana-wallet-toolkit/rust
cargo build --release
./target/release/solana-vanity --prefix Sol

TypeScript / Node.js

cd solana-wallet-toolkit/typescript
npm install && npm run build
node dist/index.js --prefix ABC

Shell Scripts

# Requires Solana CLI tools installed
cd solana-wallet-toolkit/scripts
chmod +x *.sh
./generate-vanity.sh Sol

CLI Reference

FlagDescriptionExample
--prefix, -pAddress prefix--prefix Sol
--suffix, -sAddress suffix--suffix 99
--ignore-case, -iCase-insensitive--ignore-case
--threadsThread count--threads 8
--output, -oOutput file--output wallet.json
--countGenerate multiple--count 5
--dry-runEstimate only--dry-run
--quietMinimal output--quiet

Security

Official Libraries Only

All Ed25519 key generation uses solana-sdk (Rust) and @solana/web3.js (TypeScript) from Solana Labs.

Run Offline

Disconnect from the internet before generating wallets. This toolkit makes zero network calls.

Secure File Permissions

Keypair files are saved with 0600 permissions (owner read/write only).

Memory Zeroization

The Rust implementation uses the zeroize crate to clear private keys from memory.

Audit the Code

The source code is open, documented, and designed to be auditable. Read it yourself.

How It Works

  1. Generate random Ed25519 keypair using solana-sdk / @solana/web3.js
  2. Get the public key (32 bytes)
  3. Encode as Base58 string (Solana address format)
  4. Check if address matches the desired pattern
  5. Repeat until a match is found
  6. Save keypair in Solana CLI JSON format (64-byte array)

Output Format

Keypairs are saved in Solana CLI JSON format — a JSON array of 64 bytes (32 secret + 32 public):

[174,47,154,16,202,193,206,113,199,190,53,133,169,175,31,56,...]

Compatible with solana config set --keypair and other Solana CLI tools.

Comparison

How this toolkit compares to other Solana vanity address tools:

FeatureThis Toolkitsolana-keygen grindOther Tools
Official Libraries✅ solana-sdk + @solana/web3.js✅ solana-sdk❌ Often custom/unknown
Implementations4 (Rust, TS, Shell, Web)1 (Rust CLI)Usually 1
Multi-threaded✅ All CPU cores✅ YesVaries
Prefix Search✅ Yes✅ Yes✅ Usually
Suffix Search✅ Yes❌ NoVaries
Case-Insensitive✅ Yes❌ NoRarely
Difficulty Estimation✅ Built-in❌ NoRarely
Solana CLI Compatible✅ Yes (64-byte JSON)✅ YesVaries
Browser-based✅ This website❌ NoSome (risky)
MCP Server✅ For AI agents❌ No❌ No
Open Source✅ MIT License✅ Apache 2.0Varies
Memory Zeroization✅ zeroize crate✅ Yes❌ Rarely