0xfnzero
sol-safekey
Rust

Rust CLI and library for Solana wallet key management, encrypted keystores, 2FA/3FA, bot integration, SOL/SPL transfers, and WSOL tools.

Last updated Jun 19, 2026
23
Stars
7
Forks
1
Issues
0
Stars/day
Attention Score
63
Language breakdown
Rust 98.8%
Shell 1.2%
โ–ธ Files click to expand
README

๐Ÿ” Sol-SafeKey

Secure Solana key management library with AES-256 encryption

Military-grade wallet security with simple bot integration - secure password handling, encrypted keystores, and full Solana operations support.

Crates.io Documentation License GitHub stars GitHub forks

Rust Solana Security

ไธญๆ–‡ | English | Website | Telegram | Discord


๐Ÿ“‘ Table of Contents

What This Project Provides

Sol-SafeKey is a Rust CLI and library for Solana wallet key management, encrypted keystore workflows, bot integration, and optional 2FA/3FA protection. It is designed for developers who need a safer local workflow for private keys while still supporting common Solana wallet and trading operations.

| Area | Coverage | |------|----------| | Key storage | AES-256 encrypted keys, keystore files, password-based unlock, hardware fingerprint support | | Authentication | 2FA/TOTP setup, triple-factor wallet generation, 3FA wallet unlock | | Solana operations | SOL balance, SOL transfer, SPL token transfer, WSOL wrap/unwrap/close, durable nonce accounts | | Trading utilities | Pump.fun sell, PumpSwap sell, Pump.fun cashback, PumpSwap cashback | | Integration | CLI menu, Rust library, bot helper APIs, examples, bilingual user guides |

๐Ÿ“‹ Feature Guide

๐Ÿš€ Quick Start

Installation โ†’ โ†’ Unlock Wallet โ†’ Check Balance

๐Ÿ”‘ Core Functions

๐Ÿ”’ Wallet Management

๐Ÿ›ก๏ธ Advanced Security

๐Ÿ’ฐ Solana Operations

Balance & Transfer
WSOL Operations
Token Operations
DEX Operations
Cashback Operations


๐Ÿ“ฆ Installation

Install from crates.io (Recommended)

The latest stable release is available on crates.io:

# Install with all features enabled
cargo install sol-safekey --features full

Verify installation

sol-safekey --version

Start interactive menu

sol-safekey start

This installs the complete CLI with all features:

  • ๐Ÿ” Core encryption - AES-256 password-based encryption
  • ๐Ÿ”‘ 2FA/TOTP - Two-factor authentication support
  • ๐ŸŒ Solana operations - Full Solana transaction support
  • ๐Ÿ’ฑ DEX operations - Pump.fun & PumpSwap trading
  • ๐Ÿ’ฐ Cashback - Claim trading cashback rewards

Install from source

# Clone repository
git clone https://github.com/0xfnzero/sol-safekey.git
cd sol-safekey

Build and install

cargo install --path . --features full

System Requirements

  • Rust: 1.70+ (install from rustup.rs)
  • Operating System: Linux, macOS, or Windows
  • Network: Internet connection for Solana RPC calls

Cargo Feature Flags

  • full - Enable all features (default for CLI)
  • cli - Command-line interface with colored output
  • 2fa - Two-factor authentication (TOTP) support
  • solana-ops - Solana blockchain operations
  • sol-trade-sdk - Trading operations (Pump.fun, PumpSwap)

๐Ÿ“– Complete Interactive Menu Guide

๐Ÿ“– View Complete Interactive Menu Guide โ†’ INTERACTIVE_TUTORIAL.md

Comprehensive step-by-step guide for all interactive menu operations, including detailed instructions, use cases, and example outputs for each of the 18 menu options.


๐Ÿ“š Documentation


๐Ÿ” Security

  • โœ… Password Security: stdin pipe only (never in environment variables)
  • โœ… Encryption: AES-256 with PBKDF2 key derivation
  • โœ… Memory Safety: Immediate password cleanup after use
  • โœ… Hardware Fingerprint: Device-based security layer
  • โœ… 2FA Support: Optional two-factor authentication for enhanced security

๐Ÿ› ๏ธ Available Operations

Wallet Management

  • Create Wallet - Generate new encrypted wallet with AES-256
  • Import Wallet - Import existing wallet from private key or seed phrase
  • Export Wallet - Export wallet to encrypted JSON format
  • View Address - Display wallet public address

SOL Operations

  • Query Balance - Check SOL balance in your wallet
  • Transfer SOL - Send SOL to other addresses
  • Wrap SOL - Convert SOL to WSOL (Wrapped SOL)
  • Unwrap WSOL - Convert WSOL back to SOL
  • Close WSOL ATA - Close WSOL ATA account

Token Operations

  • Transfer SPL Token - Send SPL tokens to other addresses
  • Query Token Balance - Check token balances

DEX Operations

  • ๐Ÿ”ฅ Pump.fun Sell - Interactive token selling on Pump.fun DEX (internal market only)
  • ๐Ÿ”„ PumpSwap Sell - Sell tokens on PumpSwap DEX

Cashback Operations

  • Pump.fun Cashback - View and claim pump.fun cashback (native SOL)
  • PumpSwap Cashback - View and claim PumpSwap cashback (WSOL)

Advanced Features

  • Durable Nonce Accounts - Create and manage nonce accounts for offline signing
  • 2FA Support - Optional two-factor authentication for enhanced security

Transaction Management

  • Check Transaction Status - Query transaction status on Solana

๐Ÿ“– Examples

See examples/bot_example.rs for a complete bot integration example.


๐Ÿค Contributing

Contributions welcome! Please ensure security best practices are followed. Use English for commit and PR descriptions.


๐Ÿ“„ License

MIT License - See LICENSE file for details

๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท 0xfnzero/sol-safekey ยท Updated daily from GitHub