A command-line interface for the KnexCoin blockchain implementation with complete network protocol and consensus.
- β Complete P2P network protocol with async communication
- β Proof-of-Bandwidth consensus mechanism
- β Peer discovery and management system
- β Block and transaction propagation
- β Validator rankings and selection
- β Bandwidth measurement and scoring
- β Network status monitoring
- β Complete token system with 1B KNEX genesis supply
- β Token transfers, minting, and burning
- β Balance tracking and validation
- β Ed25519 key generation with vanity support
- β Beautiful rainbow CLI interface
- β Genesis block with proper token distribution
- β Wallet management (create, list, import/export)
- β Blockchain structure with token support
- β Transaction system (send/receive)
- β Node management
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Run the CLI
python cli.py --help# Initialize a new node
python cli.py init --network testnet
# Create a wallet
python cli.py wallet create --name "my-wallet"
# Start the node
python cli.py node start --validator
# Send a transaction
python cli.py transaction send --to 0x123... --amount 100knexcoin-core/
βββ cli.py # Main CLI interface
βββ wallet.py # Wallet management
βββ blockchain.py # Blockchain implementation
βββ transaction.py # Transaction handling
βββ network.py # P2P networking
βββ node.py # Node management
βββ config.py # Configuration
βββ utils.py # Utility functions
βββ data/ # Local data storage
βββ wallets/ # Wallet files
βββ blocks/ # Blockchain data
βββ config/ # Configuration files