Expand description
§Solana Recover
A high-performance Solana wallet scanner and SOL recovery library.
This library provides functionality to:
- Scan Solana wallets for empty token accounts
- Calculate recoverable SOL from empty accounts
- Perform automated SOL recovery operations
- Handle batch processing of multiple wallets
- Provide connection pooling and caching for optimal performance
§Quick Start
use solana_recover::{scan_wallet};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let result = scan_wallet("9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM", None).await?;
println!("Found {} recoverable SOL", result.recoverable_sol);
Ok(())
}§Feature Flags
default: Enablesscannerandclientfeaturesscanner: Core wallet scanning functionalityclient: HTTP client for external APIsapi: REST API server functionalityfull: Enables all featuresdatabase: Database persistence supportcache: Advanced caching capabilitiesmetrics: Prometheus metrics collectionsecurity: Enhanced security featuresconfig: Configuration file support
Re-exports§
pub use core::*;
Modules§
Macros§
Structs§
- Empty
Account - Represents an empty token account
- Unified
Scan Result - Unified scan result containing both SOL and NFT information
- Unified
Total Claim Result - Unified total claim result containing both SOL and NFT information
Enums§
- Scan
Mode - Scan modes for different types of scanning
Constants§
- DEFAULT_
DEVNET_ ENDPOINT - Default RPC endpoint for devnet
- DEFAULT_
MAINNET_ ENDPOINT - Default RPC endpoint for mainnet
- VERSION
- Library version
Functions§
- parse_
targets_ wrapper - Parse targets string into wallet addresses Wrapper function to parse targets in the same format as the CLI
- recover_
sol - Convenience function for SOL recovery using the core recovery manager
- scan_
wallet - Convenience function for quick wallet scanning using the unified scanner
- scan_
wallet_ ultra_ fast - This function provides the fastest possible wallet scanning using: