Complete Documentation

Table of Contents


Introduction

What is Cland?

Cland is a professional-grade Chrome Extension designed for efficient and secure Solana rent collection operations. Built with security-first principles, Cland enables users to collect accumulated rent from multiple Solana token accounts in a streamlined, automated process while maintaining complete control over their private keys.

Why Cland?

🔒 Security First

  • All operations happen locally in your browser

  • Private keys never leave your device

  • No data transmission to external servers

  • Chrome Extension sandbox protection

⚡ Efficiency

  • Batch processing of multiple wallets

  • Real-time progress tracking

  • Automatic fee calculation

  • Optimized transaction handling

💰 Cost Effective

  • Minimize transaction fees through batching

  • Smart fee estimation

  • Transparent cost reporting

  • Maximum rent recovery

🎯 User-Friendly

  • Clean, modern interface

  • Step-by-step guidance

  • Detailed progress feedback

  • Professional dark theme


Installation Guide

Prerequisites

  • Google Chrome Browser (Version 88 or higher)

  • Basic Solana Knowledge (understanding of wallets, private keys, RPC endpoints)

  • Solana Wallet Files (.txt files containing private keys)

  • RPC Access (Helius, QuickNode, or custom endpoint)

Installation Methods

Method 2: Developer Mode (Advanced)

Post-Installation Setup

  1. Pin the Extension: Click the puzzle piece icon in Chrome toolbar → Pin Cland

  2. Verify Installation: Click Cland icon → Should see welcome screen

  3. First Launch: Configure RPC endpoint and fee payer wallet


Getting Started

Quick Start Guide

Step 1: Prepare Your Environment

Required Files:

  • Private Key File(s): .txt files with one private key per line

  • Fee Payer Wallet: A funded Solana wallet for transaction fees

  • RPC Endpoint: Access to Solana network (mainnet/devnet/testnet)

Example Private Key File Format:

Step 2: Configure Settings

  1. Open Cland Extension

  2. Set RPC Endpoint:

  3. Configure Fee Payer:

    • Enter private key of wallet with sufficient SOL for fees

    • Recommended minimum: 0.1 SOL for batch operations

Step 3: Load Wallets

  1. Click "Load Wallets"

  2. Select File(s):

    • Single file: Up to 1000 wallets

    • Multiple files: Unlimited

  3. Verify Loading:

    • Check wallet count display

    • Review any validation errors

Step 4: Scan for Rent

  1. Click "Scan Wallets"

  2. Monitor Progress:

    • Real-time wallet scanning

    • Progress bar and percentage

    • Live statistics update

  3. Review Results:

    • Total wallets scanned

    • Wallets with collectible rent

    • Estimated rent amount

Step 5: Collect Rent

  1. Review Summary:

    • Total rent available

    • Estimated fees

    • Net profit calculation

  2. Start Collection:

    • Click "Collect Rent"

    • Monitor real-time progress

    • View transaction details

  3. Completion:

    • Review final statistics

    • Check transaction confirmations

    • Verify fee payer balance increase


Features & Functionality

Core Features

1. Multi-Wallet Management

  • Bulk Import: Load thousands of wallets from text files

  • Format Validation: Automatic private key validation

  • Duplicate Detection: Prevents duplicate wallet processing

  • Memory Efficient: Handles large wallet sets without browser lag

2. Intelligent Rent Detection

  • Account Scanning: Comprehensive token account analysis

  • Rent Calculation: Precise rent-exempt threshold calculations

  • Filter Logic: Identifies accounts with collectible rent

  • Real-time Updates: Live balance and rent status monitoring

3. Automated Collection Process

  • Batch Transactions: Efficient transaction grouping

  • Smart Fee Management: Automatic fee calculation and optimization

  • Error Handling: Robust error recovery and retry mechanisms

  • Progress Tracking: Real-time operation monitoring

4. Security Features

  • Local Processing: All operations within browser sandbox

  • Private Key Protection: Keys never transmitted or stored externally

  • Secure Storage: Chrome's encrypted local storage

  • Audit Trail: Detailed operation logging

Advanced Features

1. Custom RPC Support

2. Token Program Support

  • SPL Token Program: Standard token accounts

  • Token-2022 Program: Next-generation token standard

  • Mixed Processing: Handles both token types simultaneously

  • Program Detection: Automatic token program identification

3. Network Configuration

  • Mainnet: Production Solana network

  • Devnet: Development testing network

  • Testnet: Testing environment

  • Custom: Private or specialized networks

4. Fee Optimization

  • Dynamic Fee Calculation: Based on current network conditions

  • Batch Size Optimization: Maximizes efficiency per transaction

  • Priority Fee Support: Faster transaction confirmation

  • Cost Minimization: Smart transaction grouping


Security Architecture

Security Principles

1. Zero-Trust Model

  • No External Communication: Extension operates in complete isolation

  • Local-Only Processing: All computations happen in browser

  • No Analytics: Zero telemetry or usage tracking

  • No Dependencies: Minimal external library usage

2. Private Key Protection

Storage Security:

Processing Security:

  • Memory Management: Keys cleared after each operation

  • Scope Isolation: Limited access to key material

  • Error Handling: Secure cleanup on failures

  • Debug Protection: No key logging in console

3. Chrome Extension Security

Manifest V3 Compliance:

Security Features:

  • Sandbox Isolation: Extension runs in isolated context

  • Permission Minimization: Only essential permissions requested

  • Content Security Policy: Prevents XSS and code injection

  • Secure Communication: No external network requests

4. Transaction Security

Signing Process:

  • Local Signing: All transactions signed locally

  • Key Derivation: Secure private key handling

  • Transaction Validation: Pre-flight checks before signing

  • Confirmation Tracking: Monitor transaction success

Error Handling:

  • Graceful Failures: Secure cleanup on errors

  • Retry Logic: Safe transaction retry mechanisms

  • Rollback Protection: Prevents partial state corruption

  • Audit Logging: Detailed operation tracking

Security Best Practices

For Users

  1. Environment Security:

    • Use dedicated browser profile for crypto operations

    • Enable browser auto-updates

    • Use strong device passwords

    • Enable device encryption

  2. Private Key Management:

    • Store backup copies securely offline

    • Never share private key files

    • Use unique passwords for encrypted files

    • Regularly audit wallet access

  3. Network Security:

    • Use trusted RPC endpoints only

    • Verify RPC endpoint certificates

    • Monitor network connections

    • Use VPN for additional privacy

For Developers

  1. Code Security:

    • Regular security audits

    • Dependency vulnerability scanning

    • Code signing verification

    • Secure development practices

  2. Build Security:

    • Reproducible builds

    • Source code verification

    • Build artifact signing

    • Supply chain security


Cost Analysis

Transaction Costs

Base Fees Structure

Solana Network Fees:

Cland Operation Costs

Per Wallet Processing:

Cost Examples

Small Operation (10 wallets):

Medium Operation (100 wallets):

Large Operation (1000 wallets):

Fee Optimization Strategies

1. Batch Processing

  • Transaction Grouping: Multiple operations per transaction

  • Optimal Batch Size: 10-20 operations per transaction

  • Fee Amortization: Spread base fees across multiple operations

2. Network Timing

  • Low Congestion Periods: Reduced priority fees

  • Peak Avoidance: Skip high-traffic times

  • Fee Monitoring: Real-time network fee tracking

3. Smart Collection

  • Rent Threshold: Only collect profitable amounts

  • Fee Calculation: Ensure positive ROI before collection

  • Cost Reporting: Transparent fee breakdown


Technical Documentation

Architecture Overview

Component Structure

Technology Stack

Frontend:

  • React 18: Modern UI framework

  • TypeScript: Type-safe development

  • Chakra UI: Component library

  • Vite: Build tool and bundler

Blockchain:

  • Solana Web3.js: Blockchain interaction

  • SPL Token: Token program interface

  • bs58: Base58 encoding/decoding

  • Buffer: Node.js compatibility

Extension:

  • Manifest V3: Chrome Extension API

  • Chrome Storage: Persistent configuration

  • CSP: Content Security Policy

  • Sandbox: Isolated execution environment

Core Modules

1. Wallet Manager

2. Rent Collector

3. Storage Service

Data Models

Wallet Information

Token Account Information

Processing Progress

Build Configuration

Vite Configuration

TypeScript Configuration

Performance Optimization

Memory Management

  • Streaming Processing: Handle large wallet sets efficiently

  • Garbage Collection: Explicit cleanup of sensitive data

  • Batch Optimization: Optimal transaction grouping

  • Progress Throttling: Smooth UI updates

Network Optimization

  • Connection Pooling: Reuse RPC connections

  • Request Batching: Group multiple queries

  • Retry Logic: Intelligent error recovery

  • Timeout Handling: Prevent hanging operations


User Interface Guide

Main Interface Components

1. Header Section

  • Logo: Cland brand identity

  • Title: Application name

  • Tagline: Purpose description

2. Progress Steps

  • Visual Progress: Current operation stage

  • Step Indication: Active, completed, pending states

  • User Guidance: Clear workflow direction

3. Configuration Panel

  • RPC URL: Solana network endpoint

  • Fee Payer: Transaction fee source wallet

  • Persistence: Secure local storage

4. Wallet Loading Section

  • File Selection: Native browser file picker

  • Drag & Drop: Convenient file handling

  • Format Support: Text file validation

  • Status Display: Load confirmation

5. Scanning Interface

  • Action Button: Start scanning process

  • Progress Bar: Visual progress indication

  • Status Text: Current operation details

  • Real-time Updates: Live progress feedback

6. Statistics Dashboard

  • Comprehensive Stats: Complete operation overview

  • Financial Summary: Cost and profit analysis

  • Real-time Updates: Live data refresh

7. Collection Interface

  • Action Button: Start collection process

  • Progress Tracking: Real-time operation status

  • Success Metrics: Detailed outcome reporting

  • Error Handling: Failed operation indication

Theme and Styling

Color Palette

Typography

Component Styling

Cards:

Buttons:

Responsive Design

Desktop Layout (400px+ width)

  • Fixed Width: 380px popup window

  • Optimal Spacing: Comfortable padding and margins

  • Full Feature Set: All functionality available

Mobile-Friendly Adaptation

  • Flexible Layout: Responsive component sizing

  • Touch Targets: Adequate button sizes

  • Readable Text: Optimized font sizes


Advanced Usage

Power User Features

1. Bulk Operations

2. Custom RPC Configuration

3. Network Selection

Automation Strategies

1. Scheduled Operations

  • Browser Automation: Use browser task schedulers

  • Workflow Integration: Combine with other tools

  • Monitoring Setup: Alert systems for completion

2. File Management

3. Result Tracking

Integration Possibilities

1. External Tools

  • Wallet Generators: Import from other tools

  • Portfolio Trackers: Export results for analysis

  • Tax Software: Transaction history export

2. API Integration

Performance Tuning

1. Optimization Settings

2. Memory Management

  • Large File Handling: Stream processing for huge files

  • Memory Cleanup: Explicit garbage collection

  • Resource Monitoring: Browser performance tracking

3. Network Optimization

  • Connection Reuse: Persistent RPC connections

  • Request Batching: Minimize network calls

  • Caching Strategy: Intelligent result caching


Troubleshooting

Common Issues

1. Extension Installation Problems

Issue: Extension not loading

Issue: Permission errors

2. Wallet Loading Issues

Issue: File not recognized

Issue: Private key validation fails

3. RPC Connection Problems

Issue: Connection timeout

Issue: Rate limiting

4. Transaction Failures

Issue: Insufficient fees

Issue: Network congestion

Error Codes

Extension Errors

Wallet Errors

Network Errors

Transaction Errors

Debug Mode

Enable Debugging

Debug Information

Getting Help

Support Channels

  • GitHub Issues: Report bugs and feature requests

  • Documentation: Check this comprehensive guide

  • Community: Join Discord for community support

  • Email: Contact support team directly

When Reporting Issues

  1. Extension Version: Check extension version

  2. Browser Info: Chrome version and OS

  3. Error Messages: Copy exact error text

  4. Steps to Reproduce: Detailed reproduction steps

  5. Screenshots: Visual evidence if applicable


API Reference

Core Classes

WalletManager

RentCollector

StorageService

Type Definitions

Interfaces

Constants

Token Programs

Default Values

Events

Progress Events

Error Events


Best Practices

Security Best Practices

1. Private Key Management

2. Network Security

3. Operation Security

Performance Best Practices

1. Batch Optimization

2. Resource Management

3. Error Handling

Operational Best Practices

1. File Organization

2. Testing Strategy

3. Monitoring

Cost Optimization

1. Fee Management

2. Timing Optimization

3. Profitability Analysis


Contributing

Development Setup

Prerequisites

Local Development

Project Structure

Code Style

TypeScript Standards

React Patterns

CSS Organization

Testing

Unit Tests

Integration Tests

Pull Request Process

Before Submitting

  1. Test Thoroughly: Run all tests and manual testing

  2. Update Documentation: Keep docs in sync with changes

  3. Follow Style Guide: Consistent code formatting

  4. Security Review: Check for security implications

PR Template

Release Process

Version Management

Release Checklist

  1. Code Review: All changes reviewed and approved

  2. Testing: Comprehensive testing completed

  3. Documentation: All docs updated

  4. Security: Security audit passed

  5. Build: Production build successful

  6. Distribution: Upload to Chrome Web Store


FAQ

General Questions

Q: What is Cland and what does it do?

A: Cland is a Chrome Extension that automates the collection of accumulated rent from Solana token accounts. When you create token accounts on Solana, a small amount of SOL (rent) is deposited to keep the account active. When these accounts are no longer needed, you can close them and recover this rent. Cland streamlines this process for multiple wallets simultaneously.

Q: Is Cland safe to use?

A: Yes, Cland is designed with security as the top priority. All operations happen locally in your browser, private keys never leave your device, and there's no external data transmission. The extension operates in Chrome's secure sandbox environment and follows best practices for cryptocurrency applications.

Q: How much does it cost to use Cland?

A: Cland itself is free to use. You only pay Solana network transaction fees, which are typically around 0.000005 SOL per transaction. Since you're recovering rent of approximately 0.00203928 SOL per token account, the operation is highly profitable with ROI typically above 98%.

Technical Questions

Q: What file formats does Cland support?

A: Cland supports plain text files (.txt) with one private key per line. The private keys should be in base58 format (the standard Solana format). Example:

Q: Which RPC providers work with Cland?

A: Cland works with any standard Solana RPC endpoint, including:

  • Solana Foundation RPC (free, rate-limited)

  • Helius (recommended for reliability)

  • QuickNode (high performance)

  • Triton (professional grade)

  • Custom endpoints

Q: Can I use Cland on testnets?

A: Yes, Cland supports all Solana networks:

  • Mainnet (production)

  • Devnet (development testing)

  • Testnet (testing environment)

  • Custom networks

Simply change the RPC endpoint to the desired network.

Q: What's the maximum number of wallets I can process?

A: There's no hard limit, but practical considerations include:

  • Browser memory (recommended: up to 10,000 wallets)

  • RPC rate limits (varies by provider)

  • Processing time (approximately 1 second per wallet)

For very large operations, consider breaking them into smaller batches.

Usage Questions

Q: How do I know if my wallets have collectible rent?

A: Use the "Scan Wallets" feature to analyze your wallets. Cland will check each wallet for token accounts that can be closed to recover rent. The scan is free (read-only operations) and provides a detailed report of potential recoverable rent.

Q: What happens if a transaction fails?

A: Cland includes robust error handling:

  • Failed transactions are retried automatically

  • Detailed error reporting shows what went wrong

  • Successful operations continue even if some fail

  • You can resume operations from where they left off

Q: Can I pause and resume operations?

A: Currently, operations run to completion once started. However, you can:

  • Process smaller batches for more control

  • Stop the extension and restart (though progress won't be saved)

  • Use the detailed progress tracking to monitor operations

Q: How long does rent collection take?

A: Processing time depends on several factors:

  • Number of wallets

  • Network congestion

  • RPC provider speed

  • Batch size settings

Typical rates:

  • Scanning: ~1 second per wallet

  • Collection: ~2-3 seconds per wallet with collectible rent

Security Questions

Q: Where are my private keys stored?

A: Private keys are only stored temporarily in your browser's memory during operations. They are:

  • Never saved to disk

  • Never transmitted over the network

  • Cleared from memory after each operation

  • Protected by Chrome's security sandbox

Q: Can Cland access my private keys when I'm not using it?

A: No. Cland only accesses private keys when you explicitly upload them during an operation. The extension cannot access files on your computer or data from other applications.

Q: What permissions does Cland require?

A: Cland uses minimal permissions:

  • storage: To save your RPC URL and settings locally

  • No access to browsing history, other websites, or personal data

Q: Is it safe to use Cland on a shared computer?

A: While Cland doesn't permanently store sensitive data, it's recommended to:

  • Use Cland only on trusted devices

  • Clear browser data after use

  • Use private/incognito browsing mode

  • Never save private key files on shared computers

Troubleshooting Questions

Q: Why is my RPC connection failing?

A: Common causes and solutions:

  • Wrong URL: Verify the RPC endpoint is correct

  • Network issues: Check your internet connection

  • Rate limiting: Try a different RPC provider or reduce batch size

  • Firewall: Ensure Chrome can access the internet

Q: Why are my private keys being rejected?

A: Private key validation can fail for several reasons:

  • Wrong format: Ensure keys are in base58 format

  • File encoding: Save files as UTF-8 text

  • Extra characters: Remove spaces, tabs, or other characters

  • Corrupted data: Re-export keys from original source

Q: Why is rent collection failing?

A: Collection failures usually involve:

  • Insufficient fees: Ensure fee payer wallet has enough SOL

  • Network congestion: Try during off-peak hours

  • Account state: Some accounts may already be closed

  • Permission issues: Verify you own the wallets being processed

Q: What should I do if I encounter a bug?

A: To report bugs effectively:

  1. Note the exact error message

  2. Record steps to reproduce the issue

  3. Include your browser and extension version

  4. Create an issue on GitHub with details

  5. Provide screenshots if helpful

Financial Questions

Q: How much rent can I expect to recover?

A: Rent recovery depends on your token accounts:

  • Standard token account: ~0.00203928 SOL per account

  • Token-2022 accounts: May vary based on extensions

  • Total recovery = Number of closeable accounts × Rent per account

Q: Are there any hidden fees?

A: No hidden fees. You only pay:

  • Solana network transaction fees (~0.000005 SOL per transaction)

  • RPC provider fees (if using premium service)

  • No fees to Cland itself

Q: When is rent collection profitable?

A: Rent collection is almost always profitable because:

  • Rent recovery: ~0.00203928 SOL per account

  • Transaction cost: ~0.000005 SOL per transaction

  • Net profit: >99% of recovered rent

Only very small operations (1-2 accounts) might have marginal profitability.

Q: Can I calculate profitability before starting?

A: Yes, Cland provides detailed cost analysis:

  • Scan wallets first (free operation)

  • Review the summary showing total recoverable rent

  • See estimated fees and net profit

  • Only proceed if profitable

Advanced Questions

Q: Can I automate Cland operations?

A: While Cland doesn't have built-in automation, you can:

  • Use browser automation tools (advanced users)

  • Schedule operations during off-peak hours

  • Integrate with workflow management tools

  • Use browser scripting for repetitive tasks

Q: How can I optimize performance for large operations?

A: Performance optimization strategies:

  • Use premium RPC providers for faster responses

  • Process during low network congestion periods

  • Break large operations into smaller batches

  • Use multiple RPC endpoints for redundancy

  • Monitor browser memory usage

Q: Can I contribute to Cland development?

A: Yes! Cland is open source and welcomes contributions:

  • Report bugs and feature requests on GitHub

  • Submit code improvements via pull requests

  • Help with documentation and testing

  • Share feedback and usage experiences

Q: What's the roadmap for Cland?

A: Future development focuses on:

  • Enhanced user interface and experience

  • Additional Solana program support

  • Performance optimizations

  • Advanced automation features

  • Integration with other DeFi tools


Conclusion

Cland represents a significant advancement in Solana DeFi tooling, providing users with a secure, efficient, and user-friendly solution for rent collection operations. By combining the security of local-only processing with the convenience of a Chrome Extension, Cland enables both novice and advanced users to maximize their returns from Solana token account management.

The extensive documentation provided here ensures that users can fully leverage Cland's capabilities while maintaining the highest standards of security and operational excellence. Whether you're managing a small portfolio or conducting large-scale operations, Cland provides the tools and guidance necessary for successful rent collection.

For the latest updates, feature announcements, and community discussions, visit our GitHub repository and join our growing community of users who are optimizing their Solana operations with Cland.

Remember: Always prioritize security, test with small amounts first, and keep your private keys secure. Happy collecting!


Last updated: January 2024 Version: 1.0.0 License: MIT