{"id":45791677,"url":"https://github.com/paytaca/watchtower-cash","last_synced_at":"2026-02-26T12:06:05.766Z","repository":{"id":38106597,"uuid":"338239715","full_name":"paytaca/watchtower-cash","owner":"paytaca","description":"Instant and reliable infrastructure connecting your apps to the Bitcoin Cash (BCH) blockchain","archived":false,"fork":false,"pushed_at":"2026-02-21T13:36:13.000Z","size":10368,"stargazers_count":15,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-21T19:59:38.852Z","etag":null,"topics":["bitcoin-cash","blockchain","rest-api","webhooks","websockets"],"latest_commit_sha":null,"homepage":"https://watchtower.cash","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paytaca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-02-12T06:18:43.000Z","updated_at":"2026-02-21T13:34:40.000Z","dependencies_parsed_at":"2025-12-03T23:07:08.236Z","dependency_job_id":null,"html_url":"https://github.com/paytaca/watchtower-cash","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/paytaca/watchtower-cash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paytaca%2Fwatchtower-cash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paytaca%2Fwatchtower-cash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paytaca%2Fwatchtower-cash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paytaca%2Fwatchtower-cash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paytaca","download_url":"https://codeload.github.com/paytaca/watchtower-cash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paytaca%2Fwatchtower-cash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29858461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T08:51:08.701Z","status":"ssl_error","status_checked_at":"2026-02-26T08:50:19.607Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin-cash","blockchain","rest-api","webhooks","websockets"],"created_at":"2026-02-26T12:06:05.268Z","updated_at":"2026-02-26T12:06:05.751Z","avatar_url":"https://github.com/paytaca.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WatchTower.Cash\n\n**Instant and reliable infrastructure connecting you to the Bitcoin Cash blockchain**\n\nWatchTower.Cash is a comprehensive blockchain infrastructure service that provides real-time monitoring, notifications, and advanced financial tools for the Bitcoin Cash ecosystem. Built for reliability at scale with 99.99% uptime guarantees.\n\n## 🚀 Core Features\n\n### Blockchain Infrastructure\n- **Real-time UTXO database** for subscribed addresses\n- **Instant notifications** via webhooks and WebSockets\n- **Transaction broadcasting** and mempool monitoring\n- **HD wallet tracking** and address subscription management\n- **Multiple node support** with failover capabilities\n\n### Advanced Wallet Solutions\n- **Multisig wallet management** with support for 2-of-3, 2-of-4, and custom m-of-n configurations\n- **Wallet templates** following LibAuth standards\n- **Transaction proposal workflow** with multi-signer coordination\n- **Secure authentication** using public key cryptography\n\n### DeFi \u0026 Derivatives\n- **Anyhedge derivatives trading** - create and manage hedge contracts with oracle price feeds\n- **Stablehedge treasury management** - automated shorting and rebalancing of treasury contracts\n- **Oracle price feeds** with real-time market data\n- **Contract settlement services** with automated execution\n\n### Trading \u0026 Exchange\n- **P2P exchange platform** with escrow contracts and arbitration system\n- **Real-time order matching** and market price feeds\n- **Escrow smart contracts** for secure peer-to-peer trading\n- **Arbitration system** for dispute resolution\n- **Cash-in services** with preset payment methods\n\n### Smart Contract Support\n- **Contract event parsing** and subscription management\n- **Block parsing** with configurable batch sizes\n\n### Payment \u0026 Merchant Tools\n- **JSON Payment Protocol (BIP70)** support for merchant payments\n- **Invoice management** and payment verification\n- **Merchant POS integration** for business payment processing\n- **Payment request handling** with transaction validation\n\n### Communication \u0026 Notifications\n- **Push notification system** with Firebase integration\n- **WebSocket APIs** for real-time updates across all services\n- **Telegram bot integration** for alerts and updates\n- **Email notifications** for important events\n\n### Business Solutions\n- **Gift card and voucher system** for promotional campaigns\n- **Merchant cash-out services** for business operations\n- **Feature control system** for app management\n- **Multi-tenant support** with country-specific features\n\n## 🏗️ Architecture\n\n### Reliability Features\n- **Distributed parallel background task queue** for block scanning and notifications\n- **Multiple failover nodes/indexers** as data sources\n- **Resource optimization** - watches only subscribed addresses\n- **Scalable infrastructure** designed for enterprise use\n\n### Technology Stack\n- **Backend**: Django with PostgreSQL and Redis\n- **Real-time**: Django Channels with WebSocket support\n- **Task Queue**: Celery with Redis backend\n- **Blockchain**: Direct node connections (BCHN, BCHD, Fulcrum)\n- **Smart Contracts**: CashScript and Anyhedge integration\n\n## 📚 Documentation \u0026 Libraries\n\n- [**API Documentation \u0026 Browser**](https://watchtower.cash/api/docs/)\n- [**JavaScript/Node.js Package**](https://github.com/paytaca/watchtower-cash-js)\n- [**Python Package**](https://github.com/paytaca/watchtower-cash-py)\n- [**Swagger UI**](https://watchtower.cash/api/docs/)\n- [**ReDoc**](https://watchtower.cash/api/redoc/)\n\n## 🔌 API Endpoints\n\n### Core Services\n- `/api/` - Main blockchain APIs (addresses, transactions, subscriptions)\n- `/api/anyhedge/` - Derivatives and hedge contract management\n- `/api/stablehedge/` - Treasury contract services\n- `/api/multisig/` - Multisig wallet operations\n- `/api/ramp-p2p/` - P2P exchange platform\n- `/api/paytacapos/` - Merchant POS integration\n- `/api/notifications/` - Push notification services\n- `/api/jpp/` - JSON Payment Protocol implementation\n\n### WebSocket Channels\n- `/ws/anyhedge/updates/{wallet_hash}/` - Anyhedge contract updates\n- `/ws/ramp-p2p/subscribe/` - P2P exchange real-time updates\n- `/ws/watch_room/` - General blockchain monitoring\n\n## 🚀 Getting Started\n\n### Prerequisites\n- Python 3.8+\n- PostgreSQL 11+\n- Redis 6+\n- Node.js 16+ (for JavaScript tooling)\n\n### Quick Start\n```bash\n# Clone the repository\ngit clone https://github.com/paytaca/watchtower-cash.git\ncd watchtower-cash\n\n# Install dependencies\npip install -r requirements.txt\nnpm install\n\n# Configure environment\ncp .env.example .env\n# Edit .env with your configuration\n\n# Run migrations\npython manage.py migrate\n\n# Start the development server\npython manage.py runserver\n```\n\n### Docker Deployment\n```bash\n# Using docker-compose\ndocker-compose -f compose/mainnet.yml up -d\n\n# Or for chipnet testing\ndocker-compose -f compose/chipnet.yml up -d\n```\n\n## 🔧 Configuration\n\n### Environment Variables\n- `BCH_NETWORK` - Network selection (mainnet/chipnet)\n- `START_BLOCK` - Starting block for blockchain scanning\n- `REDIS_HOST`, `REDIS_PORT` - Redis connection settings\n- `BCHN_HOST`, `BCHD_HOST` - Bitcoin Cash node connections\n\n### Feature Toggles\n- Enable/disable specific app features via admin panel\n- Country-specific feature restrictions\n- App version compatibility checks\n\n## 📊 Monitoring \u0026 Analytics\n\n- **Real-time block scanning** with configurable intervals\n- **Transaction validation** and mempool monitoring\n- **Price feed aggregation** from multiple sources\n- **Performance metrics** and health checks\n- **Error tracking** and logging\n\n## 🤝 Contributing\n\nWe welcome contributions! Please see our contributing guidelines and development setup instructions.\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## 🆘 Support\n\n- **Telegram**: [@WatchTowerCash](https://t.me/WatchTowerCash)\n- **Documentation**: [https://watchtower.cash/api/docs/](https://watchtower.cash/api/docs/)\n- **Issues**: [GitHub Issues](https://github.com/paytaca/watchtower-cash/issues)\n\n---\n\n**Built with ❤️ by the Paytaca team for the Bitcoin Cash community**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaytaca%2Fwatchtower-cash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaytaca%2Fwatchtower-cash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaytaca%2Fwatchtower-cash/lists"}