Military-grade wallet security with simple bot integration - secure password handling, encrypted keystores, and full Solana operations support.
δΈζ | English | Website | Telegram | Discord
- π AES-256 Encryption: Military-grade encryption with PBKDF2 key derivation
- π€ Bot Integration: Simple 3-line integration for Solana trading bots
- π° Solana Operations: Built-in support for transfers, wrapping, token operations
- π Secure by Default: Password via stdin pipe (memory only, never environment variables)
- π― Interactive CLI: Full-featured command-line interface with
safekeycommand
# Build the bot
cargo build --example bot_example --features solana-ops --release
# Run interactive safekey commands
./build-cache/release/examples/bot_example safekeyuse sol_safekey::KeyManager;
// Generate keypair
let keypair = KeyManager::generate_keypair();
// Encrypt and save
let json = KeyManager::keypair_to_encrypted_json(&keypair, "password")?;
std::fs::write("keystore.json", json)?;
// Load and decrypt
let json = std::fs::read_to_string("keystore.json")?;
let keypair = KeyManager::keypair_from_encrypted_json(&json, "password")?;- Bot Integration Guide - How to integrate sol-safekey into your bot
- User Guide - Complete usage instructions and examples
- β Password Security: stdin pipe only (never in environment variables or files)
- β Encryption: AES-256 with PBKDF2 key derivation
- β Memory Safety: Immediate password cleanup after use
Add to your Cargo.toml:
[dependencies]
sol-safekey = { path = "path/to/sol-safekey" }
[features]
solana-ops = ["sol-safekey/solana-ops"]Via safekey command:
- Create encrypted wallet
- Query SOL balance
- Transfer SOL
- Wrap/Unwrap SOL β WSOL
- Transfer SPL tokens
- Create durable nonce accounts
- π₯ PumpSwap Sell - Interactive token selling on PumpSwap DEX
- One-click sell all tokens
- Seed-optimized ATA support
- Default 99% slippage for fast execution
- Bilingual support (English/Chinese)
See examples/bot_example.rs for a complete bot integration example.
Contributions welcome! Please ensure security best practices are followed.
MIT License - See LICENSE file for details