Lattice- About The Project
Inspiration
The crypto space is plagued by information asymmetry. Retail investors often find themselves at a disadvantage, lacking the tools and insights that institutional players use to make informed decisions. We noticed three critical gaps:
- Wallet Management Complexity: Users struggle to understand their portfolio composition and often leave SOL locked in unused token accounts
- Offline Transaction Limitations: Traditional crypto requires constant internet connectivity, limiting adoption in areas with poor connectivity
- Privacy Concerns: On-chain transparency exposes transaction patterns, making users vulnerable to tracking and targeted attacks
We built Solana Whale Tracker to democratize access to professional-grade crypto tools while pioneering offline transaction capabilities and privacy-preserving payment methods.
What It Does
Core Features
1. Real-Time Portfolio Analytics (Helius API Integration)
- Comprehensive wallet insights using Helius's enhanced Solana RPC APIs
- Real-time portfolio tracking with SOL and SPL token balances
- Automatic USD valuation using CoinMarketCap price feeds
- Multi-wallet aggregation for complete portfolio overview
- 60-second caching for optimal performance
2. BLE Mesh Network for Offline P2P
- Bluetooth Low Energy mesh networking for device discovery
- Peer-to-peer crypto transfers without internet connectivity
- Store-and-forward routing for extended range
- Perfect for conferences, remote areas, or network outages
- Encrypted communication channels
3. Proximity-Based Transfers
- Discover nearby users via BLE and mDNS
- Secure authentication using cryptographic challenges
- Real-time transfer status via WebSocket
- Session management with automatic cleanup
- Transfer history and receipt generation
4. Stealth Addresses for Privacy
- Generate one-time payment addresses
- ECDH-based key derivation (Curve25519)
- Viewing tags for efficient payment scanning
- Hybrid mode with post-quantum cryptography (Kyber)
- On-chain metadata storage via SPL Memo
5. Whale Tracking & Analytics
- Monitor large wallet movements in real-time
- Track whale trading patterns and positions
- Correlation analysis between whale activity and portfolio performance
- Automated alerts for significant movements
- Historical movement analysis
6. P2P Exchange Marketplace
- Create and accept peer-to-peer trade offers
- Escrow-based settlement system
- Reputation and verification system
- Encrypted chat for negotiation
- Multi-asset support
8. Cross-Chain Conversions
- Integrated SideShift and Jupiter aggregators
- Transparent fee breakdown (network, platform, provider)
- Quote comparison and best rate selection
- Conversion history with PDF receipts
- Multi-blockchain support (Solana, Ethereum, BSC, Polygon)
Tech Stack
Backend (Rust)
- Framework: Axum (high-performance async web framework)
- Database: PostgreSQL with Deadpool connection pooling
- Caching: Redis for portfolio and price caching
- Blockchain:
- Solana SDK for native Solana integration
- Custom circuit breaker and retry logic
- APIs:
- Helius RPC for enhanced Solana metrics
- CoinMarketCap for real-time pricing
- SideShift for cross-chain swaps
- Cryptography:
- Curve25519 for ECDH key exchange
- Kyber for post-quantum encryption
- AES-GCM for symmetric encryption
- Argon2 for password hashing
Frontend
- Vanilla JavaScript for lightweight, fast UI
- WebSocket for real-time updates
- Solana Web3.js for wallet integration
- CSS for mobile-first design
Infrastructure
- Modular Crate Architecture:
blockchain- Chain interactionsdatabase- Data persistencestealth- Privacy featuresproximity- P2P discoveryble-mesh- Mesh networkingapi- HTTP/WebSocket server
- Docker for containerization
- Environment-based configuration
- Comprehensive testing (unit, integration, property-based)
Key Dependencies
# Core toml
axum = "0.7"
tokio = "1.0"
solana-sdk = "1.18"
spl-token = "4.0"
# Cryptography
curve25519-dalek = "4.1"
pqc-kyber = "0.7" # Post-quantum
aes-gcm = "0.10" # Encryption
# Database
tokio-postgres = "0.7"
redis = "0.24"
# Networking
btleplug = "0.11"
mdns-sd = "0.10"
Challenges We Faced
1. Offline Transaction Complexity
Challenge: Implementing reliable P2P transfers without internet connectivity required building a complete mesh network stack from scratch.
Solution:
- Implemented BLE mesh with store-and-forward routing
- Created custom gossip protocol for message propagation
- Built fallback mechanisms (BLE → mDNS → WiFi Direct)
- Designed queue system for delayed transaction submission
2. Privacy vs. Transparency Trade-off
Challenge: Solana's transparent blockchain makes all transactions publicly visible, conflicting with user privacy needs.
Solution:
- Implemented stealth addresses using ECDH key derivation
- Added viewing tags for efficient payment scanning
- Integrated post-quantum cryptography for future-proofing
- Created temporary wallet system for enhanced privacy
3. Real-Time Data at Scale
Challenge: Providing real-time portfolio updates for multiple users without overwhelming the RPC endpoints.
Solution:
- Implemented multi-layer caching (Redis + in-memory)
- Built circuit breaker pattern to prevent cascade failures
- Created intelligent retry logic with exponential backoff
- Used WebSocket for efficient real-time updates
4. Cross-Chain Complexity
Challenge: Supporting multiple blockchains with different transaction formats, gas models, and confirmation times.
Solution:
- Abstracted blockchain interactions behind unified interface
- Implemented chain-specific clients with common traits
- Built provider failover system for reliability
- Created comprehensive error handling for chain-specific issues
5. Account Rent Management
Challenge: Users accumulate empty token accounts that lock up SOL in rent, but closing them manually is tedious and error-prone.
Solution:
- Automated detection of closeable accounts
- Batch processing for efficiency (14 accounts per tx)
- Smart blacklisting to prevent accidental closure
- Clear UI showing reclaimable SOL before execution
6. Helius API Integration
Challenge: Migrating from Tantum API to Helius required understanding their DAS (Digital Asset Standard) format and handling edge cases.
Solution:
- Studied Helius documentation and API responses
- Implemented robust parsing for DAS format
- Added fallback to direct blockchain queries
- Created comprehensive error handling
Technical Insights
Rust's Power for Blockchain: Rust's memory safety and performance make it ideal for blockchain applications. The type system caught countless bugs at compile time.
Async Complexity: Managing async operations across WebSocket connections, database queries, and blockchain RPC calls required deep understanding of Tokio's runtime.
Bluetooth LE Limitations: BLE has strict packet size limits and connection reliability issues that required creative solutions with very limited resources
Circuit Breaker Importance: External API failures can cascade. Circuit breakers are essential for maintaining system stability.
Caching Strategy: Multi-layer caching (Redis for shared state, in-memory for hot data) dramatically improved performance while reducing RPC costs.
Blockchain Insights
Solana's Speed: Solana's 400ms block times enable near-instant confirmations, making it perfect for real-time applications.
Account Model Complexity: Solana's account model is powerful but complex. Understanding rent, account ownership, and PDAs is crucial.
RPC Reliability: Public RPC endpoints are unreliable. Production apps need dedicated nodes or premium RPC services like Helius.
Transaction Size Limits: Solana's 1232-byte transaction limit requires careful instruction batching.
Product Insights
Privacy Matters: Users care deeply about transaction privacy. Stealth addresses and temporary wallets are highly valued features.
Offline Capability: The ability to transact without internet is a game-changer for adoption in developing regions.
Account Cleanup: Many users don't realize they have SOL locked in empty accounts. Automated detection is a huge value-add.
What Makes This Project Stand Out
1. Offline-First Architecture
We're one of the few crypto applications that works without internet connectivity. Our BLE mesh network enables true peer-to-peer transactions anywhere.
2. Privacy by Design
Stealth addresses with post-quantum cryptography future-proof user privacy. We're preparing for the quantum computing era today.
3. Production Grade Rust Backend
Our modular crate architecture, comprehensive testing, and robust error handling demonstrate enterprise-level engineering.
4. Real-Time Everything
WebSocket connections provide instant updates for portfolio changes, whale movements, and P2P transfers.
5. Multi-Chain Support
Seamless integration with Solana, Ethereum, BSC, and Polygon through unified interfaces.
6. Intelligent Automation
Agentic trimming, auto-staking, and price benchmarks automate complex trading strategies.
Impact
- Democratizes Access: Professional-grade tools for retail investors
- Enhances Privacy: Protects users from on-chain surveillance
- Enables Offline: Brings crypto to areas with poor connectivity
- Saves Money: Free account cleanup saves users real SOL
- Educates Users: Transparent analytics help users understand their holdings
Built with ❤️ for the Solana ecosystem
Built With
- argon2
- async
- axum
- bsc
- css3
- docker
- docker-compose
- ethereum
- ethers-rs
- javascript
- jwt
- kyber
- mdns
- polygon
- postgresql
- redis
- rust
- serde
- spa
- tokio
- totp
- websocket
Log in or sign up for Devpost to join the conversation.