From ZmnSCPxj at protonmail.com Mon Jan 8 06:22:44 2018 From: ZmnSCPxj at protonmail.com (ZmnSCPxj) Date: Mon, 08 Jan 2018 01:22:44 -0500 Subject: [Lightning-dev] Invoice without amount In-Reply-To: <CAFDmaN76qiGHqFspZ6R8FN7eEsGCaFBKyFiTMni4sHs7512v0w@mail.gmail.com> References: <CAFDmaN76qiGHqFspZ6R8FN7eEsGCaFBKyFiTMni4sHs7512v0w@mail.gmail.com> Message-ID: <G6ytGZcDsaKz_S5gofEQORzYPcgBTthX38ScHfyBnMIt4cdGFiNCZAsL4LdI9xF_F5ZeIyxBL1ZzXfWdBsROfNvYGehoJU_SaFNS92Oca5o=@protonmail.com> Good morning Cezary, Currently, c-lightning can PAY amountless invoices via the "pay" command, but cannot CREATE them via the c-lightning "invoice" command. To pay an amountless invoice lntb... 4 satoshis in c-lightning: lightning-cli pay lntb.. 4000 However the internals of c-lightning should be able to handle creating amountless invoices (it is only the JSON-RPC command itself which requires the amount, but the rest of the code treats it as optional). I will see what I can do to make creating amountless invoices in c-lightning possible. Regards, ZmnSCPxj Sent with [ProtonMail](https://protonmail.com) Secure Email. > -------- Original Message -------- > Subject: [Lightning-dev] Invoice without amount > Local Time: January 6, 2018 10:04 PM > UTC Time: January 6, 2018 2:04 PM > From: cezary.dziemian at gmail.com > To: lightning-dev at lists.linuxfoundation.org > > Hello, > > It looks "amount" is optional for invoice: > > https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md > > The issue is I cannot generate such invoice using lnd. This is very important for what we are tryiong to do with LN. Can you confirm, that value will be optional for LN invoice. > > Or at least, thet there is some other way to send payment when sender specifies amount. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20180108/208c416d/attachment.html>