Two modes
| Mode | Provider | Fee | Testnet / Sandbox | Setup |
|---|---|---|---|---|
| Managed ⭐ | ManagedProvider | 0.3% per sat | ❌ (use mock in tests) | Lightning address only |
| Soberano | Blink | 0% | ❌ mainnet only | Free custodial account |
| Soberano | LNbits | 0% | ✅ RegTest / signet | Self-host or public instance |
| Soberano | OpenNode | 0% | ✅ testMode: true | Free sandbox account |
| Soberano | Alby Hub | 0% | ✅ via Hub testnet wallet | Self-custodial cloud node |
| Soberano | BTCPay | 0% | ✅ RegTest support | Self-hosted node |
| Soberano | Custom | 0% | ✅ whatever you wire up | Any Lightning backend |
ManagedProvider (Recommended)
No Lightning node needed. Add your Lightning address and start earning — l402kit.com handles all invoice creation and payment routing. Fee: 0.3% per sat received. 99.7% lands directly in your Lightning wallet. No monthly fee.- Your API calls
ManagedProvider.fromAddress("you@domain.com") - When a caller hits your endpoint, l402kit.com creates a Lightning invoice
- Caller pays → Lightning settles → 99.7% forwarded to your Lightning address instantly
- Your API verifies the cryptographic proof and returns
200 OK
The 0.3% routing fee is the only cost. No monthly fee. No account registration. Any Lightning address works (Blink, Phoenix, Alby, Strike, Wallet of Satoshi, etc.).
Trust & availability
Who runs l402kit.com? ShinyDapps (open source, MIT). The managed infrastructure runs on Cloudflare Workers — globally distributed, no single server to go down. Uptime: Monitored 24/7 at stats.uptimerobot.com/57uOzF17jK. SLA target: 99.9%. What if l402kit.com disappears? Your verification logic is local —SHA256(preimage) == paymentHash runs in your process, zero network calls. Only invoice creation touches l402kit.com. If the managed service goes down, switch to any soberano provider in one line:
cloudflare/ contains the managed API worker — deploy it to your own Cloudflare account in 5 minutes.
Blink (Soberano — 0% fee)
Blink is a free custodial Bitcoin Lightning wallet with a GraphQL API. No KYC, no monthly fee, instant setup. Use it to run in soberano mode with 0% fee.Contingency plan: Blink is a free service — their pricing can change. If Blink adds fees or limits the API, switch to another soberano provider in one line of code (no other changes required, already-paid tokens keep working). Zero lock-in. Good alternatives: LNbits (self-hosted, 0% forever), OpenNode (commercial SLA), Alby Hub (self-custodial), or BTCPay (fully sovereign).
- Create account at dashboard.blink.sv
- Go to API Keys → create a new key
- Copy your BTC Wallet ID from the wallet page
LNbits (Soberano — 0% fee)
LNbits is an open-source Lightning wallet server. Self-host it or use a public instance. Get started:- Set up LNbits (self-host or use legend.lnbits.com)
- Create a wallet → copy the Invoice/read key
OpenNode (Soberano — 0% fee)
OpenNode is a Lightning provider with a free sandbox for testing. Get started:- Create account at app.opennode.com
- Go to Integrations → API Keys → create a key
Alby Hub (Soberano — 0% fee)
Alby Hub is a self-custodial Lightning node in the cloud. Your keys, your sats — no custodian. Get started:- Create a Hub at hub.getalby.com (or self-host)
- Go to Settings → Access Tokens → create token with
invoices:create+invoices:readscopes - Copy your Hub URL and access token
BTCPay Server (Soberano — 0% fee)
BTCPay Server is fully self-sovereign Bitcoin + Lightning. Your node, your keys, zero custody. Compatible with: self-hosted (Umbrel, Start9, VPS) or managed (Voltage, LunaNode). Get started:- BTCPay store → Lightning → Settings
- Account → API Keys → generate key with scope
btcpay.store.cancreatelightninginvoice - Copy your Store ID from the store URL
Custom provider (Soberano — 0% fee)
Implement theLightningProvider interface to use any Lightning backend: