| Crates.io | solana-vanity |
| lib.rs | solana-vanity |
| version | 0.1.1 |
| created_at | 2025-06-06 09:00:10.788481+00 |
| updated_at | 2025-06-06 09:57:01.445608+00 |
| description | A fast CLI and library for generating Solana vanity addresses. |
| homepage | |
| repository | https://github.com/devgreek/solana-vanity-address-rs |
| max_upload_size | |
| id | 1702738 |
| size | 98,287 |
This project is a fast CLI tool to generate Solana wallet addresses (public keys) with a custom prefix (vanity address), leveraging multithreading for speed.
Install Rust (if not already installed):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Follow the on-screen instructions to complete the installation.
Clone this repository:
git clone <repo-url>
cd solana-vanity-address-rs
Build the project:
cargo build --release
Run the program with your desired prefix:
cargo run --release -- --prefix <PREFIX>
<PREFIX> with the string you want your Solana address to start with (case-sensitive).cargo run --release -- --prefix <PREFIX> --threads 8
cargo run --release -- --prefix Sol
This will search for a Solana address starting with Sol using all available CPU cores.
You can use this crate as a library in your own Rust project:
Add to your Cargo.toml:
solana-vanity = "0.1.0"
Example usage:
use solana_vanity::find_vanity_address;
let result = find_vanity_address("Sol", 8);
println!("Address: {}", result.keypair.pubkey());
MIT