Connect Xpub Aggregator to your own Electrum Server and add your XPUBs to get your overall balance across different wallets.
- Python 3.8 or higher
- An Electrum Server running locally or accessible on your network
- Clone the repository:
git clone <repository-url>
cd xpub-aggregator- Create a virtual environment:
python3 -m venv localenv
source localenv/bin/activate- Install dependencies:
pip install -r requirements.txtEdit config.py and set your Electrum Server connection details and XPUB:
# Electrum Server Configuration
ELECTRUM_HOST = "xxx.xxx.xxx.xxx" # Your Electrum Server IP
ELECTRUM_PORT = xxxxx # Your Electrum Server Port
# Bitcoin XPUB to monitor
XPUB = "your_xpub_here"Make sure your virtual environment is activated:
source localenv/bin/activateRun the application:
python main.pyThe application will:
- Connect to your Electrum Server
- Fetch your wallet balance
- Display your XPUB and total balance in the GUI
- Real-time Balance: Connects directly to your Electrum Server for live data
- Balance Display: View your XPUB and total balance in the GUI
- Add XPUBs through GUI: Add new XPUBs through GUI button
- Multiple XPUBs: Monitor multiple wallets in one place
- Balance Tracking: View your aggregated balance across wallets
- Transaction History: See your transaction history
- Balance Charts: Visual representation of balance over time
- Export Data: Export wallet data to CSV/JSON
If you encounter connection issues:
- Verify your Electrum Server is running and accessible
- Check that
ELECTRUM_HOSTandELECTRUM_PORTinconfig.pyare correct - Ensure your firewall allows connections to port 50001
- Check the console logs for detailed error messages
See requirements.txt for all dependencies:
- PySide6 - GUI framework
- pycoin - Bitcoin utilities
MIT License