lightning-charge
lightning-charge copied to clipboard
Fallback to on-chain bitcoin payments
All exclusive.
Perhaps using lightning-cli newaddr
? If every invoice has an on-chain address you could use a BIP-21 URI with an embedded lightning destination ?lightning=...
.
Alternatively an on-chain address could be generated on the demand if the user says they don't have lightning.
I think this also requires a change to the status API, to differentiate between a received on-chain and lightning payments.
Invoice can contain on chain addresses in case when payment fails. It would be great if lightning-charge detects the fallback on chain payment and fulfills the invoice.