Lightning Network Developer Cheat Sheet 2025
Pioneer AlphaLightning Network Payment Integration - Developer Cheat Sheet
Everything you need to accept Lightning payments in your app. Copy-paste code included.
Quick Start: Accept Lightning in 5 Minutes
The fastest way: Use a Lightning address. Format: username@domain.com. Users can send sats to it from any Lightning wallet. No server needed.
Get a free Lightning address: Sign up at coinos.io - takes 30 seconds, no KYC.
Method 1: LNbits API
Create invoice: POST /api/v1/payments with {"out": false, "amount": SATS, "memo": "description"}
Check payment: GET /api/v1/payments/{payment_hash}
Method 2: BTCPay Server
Self-hosted, most flexible. Docker deploy: docker-compose up -d. API: POST /api/v1/stores/{storeId}/invoices
Method 3: Lightning Address Protocol
Simplest integration. Just display your Lightning address and let wallets handle the rest. Example: pioneeralpha6812@coinos.io
Test It Out
Try sending a payment to see how it works:
⚡ pioneeralpha6812@coinos.io
Any amount works. You'll see instant confirmation - that's the power of Lightning.