c-lightning-REST icon indicating copy to clipboard operation
c-lightning-REST copied to clipboard

Listening for paid invoices

Open LightningK0ala opened this issue 6 years ago • 5 comments

Great work on the library! Are there plans to including a websocket to subscribe to invoices that are paid?

LightningK0ala avatar Sep 28 '19 20:09 LightningK0ala

Thanks @LightningK0ala No plan yet. Will explore this requirement more.

saubyk avatar Sep 28 '19 22:09 saubyk

@saubyk FWIW now that you support plugin mode you can listen to notifications such as invoice_payment ;-) https://lightning.readthedocs.io/PLUGINS.html#invoice-payment

darosior avatar Oct 12 '19 19:10 darosior

This could help: https://github.com/btcpayserver/BTCPayServer.Lightning/blob/dee2f2809d31ec7681b0b97b96fb7a610993b18e/src/BTCPayServer.Lightning.CLightning/CLightningClient.cs#L418

Kukks avatar Jan 20 '20 07:01 Kukks

You could just run this plugin, there would really be no benefit to including here unless for some reason you are running as a service and can not use plugins? Of course the plugin is newer than the last comment in this thread so maybe it could be the solution.

rsbondi avatar Mar 19 '20 17:03 rsbondi

We run C-lightning-rest as a standalone service in its own docker container so we cannot have a plugin

Kukks avatar Apr 12 '20 09:04 Kukks

It was resolved a while back. Closing it now.

ShahanaFarooqui avatar Sep 26 '23 03:09 ShahanaFarooqui