Description
I'm trying to craft a custom invoice using the pyln Invoice
class. The invoices I manage to create seem valid and they are payable via some wallets, but most wallets fail to pay them with various errors.
When I decode the invoices with LND (sorry, I don't have CLN setup yet), I notice that the invoice does not include any features
additionally, the payment_addr
is all zeros.
As I understand it, lnd uses the term payment_addr
to refer to the s
tag from bolt11 (payment secret)
Is it possible to inject a custom s
tag using the Invoice
class? By inspecting the source, it seems there is no case to handle the s
tag so it gives error like unknown tag: s
. Also, is it possible to add feature bits to the invoice?
I noticed that the Invoice class has not been updated in 5yrs. So it probably won't handle MPP or blinded paths either. Is this being maintained? Are there other python libs you'd recommend to build custom invoices?