Lightning Nodes
This guide walks you through integrating Comet Platform with popular wallets, third-party services, and applications. Whether you're connecting node management tools like ThunderHub, integrating with mobile wallets, or building custom applications, you'll find step-by-step instructions and code examples to get you started.
Estimated reading time: 18 minutes
Note: Bitcoin Core nodes are not currently available on Comet Platform. References to Bitcoin Core in this guide are for future use when the feature becomes available. Currently supported node types: LND Node and LITD (TAPD) Node.
Introduction to Comet Integrations
Comet Platform provides flexible integration options that allow you to connect your nodes with a rich ecosystem of Bitcoin and Lightning Network tools. Whether you need a visual management interface, analytics dashboards, or custom application logic, Comet's open architecture makes integration straightforward.
Integration Methods
Direct Node Access
Connect directly to your LND or Tapd nodes using REST interface with macaroon authentication.
Comet Platform API
Use Comet's Platform API to manage node lifecycle, fetch metrics, and handle operational tasks programmatically.
Webhooks
Configure event-driven integrations that trigger actions in your systems when specific events occur on your nodes.
SDK Libraries
Leverage pre-built SDK libraries (Python, JavaScript, Rust, Go) for rapid application development.
Prerequisites
Before integrating with external tools, ensure you have:
An active Comet Platform account
At least one deployed node (LND, Tapd, or Bitcoin Core)
Node connection details (host, port, macaroon)
Basic understanding of your node type and its capabilities
Wallet Integrations
ThunderHub (Web UI)
ThunderHub is a popular web-based Lightning node manager that provides a clean interface for managing channels, making payments, and monitoring your node.
What You'll Need
LND node running on Comet Platform
Node connection URL (provided in Comet Dashboard)
Admin macaroon (fetchable via Comet API)
TLS certificate (if required)
Step 1: Fetch Node Connection Details
Log into your Comet Dashboard and navigate to your LND node details page. You'll find:
REST Host:
your-node-id.comet.platform:8080Connection Instructions: Click "Connect to Node" for detailed info
Step 2: Download Your Admin Macaroon
You can fetch your encrypted macaroon via the dashboard or API:
Via Dashboard:
Go to Node Details → Security → Macaroons
Click "Download Encrypted Macaroon"
Decrypt locally using your password
Via API:
Decrypt the macaroon:
Step 3: Install ThunderHub
ThunderHub can be installed locally or deployed as a container:
Docker Installation:
Local Installation:
Step 4: Configure ThunderHub
Create a configuration file at ~/.thunderhub/accounts.yaml:
If Comet provides TLS certificates, download them via:
Step 5: Start ThunderHub and Connect
Navigate to http://localhost:3000 and log in with your master password. Your Comet LND node should appear in the accounts list.
Tips for ThunderHub Integration
Use REST API endpoints
Enable auto-unlock via Comet webhooks for seamless node restarts
Set up ThunderHub's built-in monitoring for channel rebalancing
Configure HTTPS if exposing ThunderHub publicly
RTL (Ride The Lightning)
RTL is another popular web interface for LND node management, offering comprehensive Lightning Network operations.
Installation and Setup
Docker Installation:
Configuration
Create RTL-Config.json:
Access RTL at http://localhost:3001 and log in with your configured password.
Zeus (Mobile)
Zeus is a powerful mobile Lightning wallet that can connect to your Comet LND node for remote management.
Setup Instructions
Download Zeus from App Store or Google Play
Prepare Connection Details:
Add Node in Zeus:
Test Connection:
Security Considerations
Enable biometric authentication in Zeus settings
Configure IP whitelisting in Comet for your mobile IP (if static)
Consider creating a custom macaroon with limited permissions for mobile use
Creating a Limited Macaroon for Zeus:
Zap (Mobile)
Zap provides a simplified Lightning experience for mobile users.
Connection Steps
Download Zap from App Store
Select "Connect Remote Node"
Choose "LND Node"
Scan QR code or manually enter:
BlueWallet (Mobile)
BlueWallet supports LND node connections via LNDHub or direct REST API.
LNDHub Integration
BlueWallet works best with LNDHub as an intermediary:
Install LNDHub server:
Configure LNDHub to connect to your Comet LND node:
Start LNDHub and add the connection URL to BlueWallet
Electrum (Desktop)
Electrum is a Bitcoin wallet that can connect to your Bitcoin Core node on Comet Platform.
Configuration
Open Electrum → Tools → Preferences → Server
Enable "Select server manually"
Enter your Bitcoin Core node details:
For authenticated access, configure RPC credentials from Comet Dashboard
Sparrow (Desktop)
Sparrow Wallet offers advanced Bitcoin features and can connect to your Comet Bitcoin Core node.
Setup Instructions
Open Sparrow Wallet → Preferences → Server
Select "Bitcoin Core"
Configure connection:
Test connection and enable features like UTXO selection and transaction broadcasting
Third-Party Service Integrations
Payment Processors
Integrate your Comet Lightning node with payment processing platforms to accept Bitcoin payments.
BTCPay Server Integration
Deploy BTCPay Server (self-hosted or via hosting provider)
Configure Lightning Network settings:
Test payment flow by creating an invoice
OpenNode Integration
Connect your node to OpenNode's payment APIs:
Block Explorers
Connect your nodes to block explorers for enhanced transaction tracking.
Mempool.space Integration
Point your Bitcoin Core node metrics to Mempool.space:
Blockstream Explorer API
Use Blockstream APIs alongside your node:
Analytics Platforms
Amboss Integration
Amboss provides Lightning Network analytics and reputation scoring.
Sign up at amboss.space
Add your node:
Sign Verification Message:
Configure Amboss features:
1ML Integration
Submit your node to 1ML.com for public listing:
Find your node public key in Comet Dashboard
Search for your node on 1ML
Verify ownership by signing a message
Set alias and contact information
Monitoring Services
Prometheus + Grafana
Set up monitoring for your Comet nodes:
Prometheus Configuration:
Grafana Dashboard:
Use Comet's monitoring API to fetch metrics:
Application Integrations
E-commerce Platforms
WooCommerce Integration
Install WooCommerce Lightning payment gateway plugin
Configure plugin settings:
Test checkout flow
Example Payment Flow:
Shopify Integration
Use Shopify's payment gateway APIs with your Comet Lightning node:
Create Shopify app
Implement payment webhook endpoint
Generate Lightning invoices via Comet SDK
Monitor payment status via Comet webhooks
Accounting Software
QuickBooks Integration
Automate accounting for Lightning transactions:
Custom Applications
Building a Payment Gateway
Python Example:
Node.js Example:
Integration Patterns
Webhooks Integration
Configure webhooks to receive real-time notifications about node events.
Common Webhook Events:
Invoice settled
Channel opened/closed
Node online/offline
Payment received
Payment sent
Setting Up Webhooks:
Webhook Handler Example:
See our comprehensive Webhooks Guide for more details.
API/SDK Integration
For programmatic access, use Comet's API or SDK libraries.
REST API Example:
See our API Reference Guide for complete documentation.
Code Examples
Complete Payment Integration Example
Python Application with Flask:
Best Practices
Security Best Practices
✅ Use Limited Macaroons: Create macaroons with only the permissions needed for each integration
✅ Enable IP Whitelisting: Restrict node access to known IP addresses
✅ Rotate Credentials: Regularly rotate macaroons and API keys
✅ Use HTTPS: Always use encrypted connections for API calls
✅ Validate Webhooks: Verify webhook signatures to prevent spoofing
✅ Store Secrets Securely: Use environment variables or secret managers for credentials
Performance Best Practices
✅ Cache Node Data: Cache frequently accessed data to reduce API calls
✅ Use Webhooks: Prefer event-driven webhooks over polling
✅ Batch Operations: Group multiple operations when possible
✅ Monitor Rate Limits: Respect API rate limits and implement backoff strategies
Integration Best Practices
✅ Test on Testnet: Always test integrations on testnet before mainnet
✅ Handle Errors Gracefully: Implement retry logic and error handling
✅ Log Everything: Maintain detailed logs for debugging
✅ Monitor Health: Set up monitoring for integration endpoints
✅ Document Your Integration: Keep internal documentation for maintenance
Troubleshooting
Common Integration Issues
Problem: Cannot Connect to Node
Verify node is running (check Comet Dashboard)
Confirm connection URL and port are correct
Check firewall rules and IP whitelisting
Verify macaroon is valid and not expired
Problem: Authentication Failures
Ensure macaroon is properly formatted (hex for most tools)
Verify macaroon permissions are sufficient
Check if macaroon was decrypted correctly
Confirm TLS certificate matches if required
Problem: Webhook Not Receiving Events
Verify webhook URL is publicly accessible
Check webhook signature validation logic
Review Comet webhook logs in dashboard
Test webhook endpoint with curl
Ensure events are properly configured
Problem: Slow API Responses
Check node resource utilization
Review network latency between your app and Comet
Optimize queries (reduce unnecessary API calls)
Consider upgrading node tier for better performance
Implement caching for frequently accessed data
Problem: Payment Invoice Not Settling
Verify Lightning channel liquidity
Check if invoice has expired
Review payment route availability
Inspect node logs for error messages
Test with a small amount first
Getting Help
If you encounter issues not covered here:
Check Documentation: Review our Troubleshooting & FAQs
Community Discord: Join our Discord server for community support
Support Tickets: Open a support ticket for technical assistance
API Status: Check status.comet.platform for service status
Related Resources
Connect to Your Node Guide - Detailed connection instructions
Macaroons Deep Dive - Authentication and permissions
Webhooks Guide - Comprehensive webhook documentation
API Reference - Complete API documentation
SDK Documentation - Language-specific SDK guides
Security & Backup - Security best practices
Last Updated: January 5, 2026
Questions or feedback? Contact us at support@comet.platform.