<div dir="ltr"><div dir="ltr">Hi Rusty,<div><br></div><div>Thanks for your reply. </div><div><br></div><div>I&#39;m using the C lightning repo for my project(<a href="https://github.com/ElementsProject/lightning" rel="noreferrer" target="_blank">https://github.com/ElementsProject/lightning</a>). Sorry, I framed the question wrongly. Yes, I can use listinvoices to look up for the invoices created at the node.</div><div><br></div><div>My scenario is something like this, I&#39;m looking up whether an invoice gets paid or not at the receiver end. For that at this point, I&#39;m calling waitinvoice to see whether an invoice gets paid or not. I would like to know is there any way that the receiver could be aware that the particular invoice created by it paid or not.</div><div><br></div><div>The problem is using waitinvoice in my case, it&#39;s making my process hang till the invoice gets paid. Some workaround which I&#39;m using for this problem is I&#39;m looking up the difference in amount of the label &quot;msatoshi_to_us&quot; while running the listpeers command.</div><div><br></div><div>Thank You.</div><div><br></div><div><div><div dir="ltr" class="gmail-m_6215532078984360266gmail_signature">Regards,<br>Sarat G<br><div><br></div><div><br></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 26, 2018 at 8:59 AM Rusty Russell &lt;<a href="mailto:rusty@rustcorp.com.au" target="_blank">rusty@rustcorp.com.au</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sarat G &lt;<a href="mailto:sarath.ginjupalli89@gmail.com" target="_blank">sarath.ginjupalli89@gmail.com</a>&gt; writes:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m been working on the LN repo for a while now. I would like to know if<br>
&gt; there is any way that a payee can lookup the invoice it gets paid, i.e<br>
&gt; similar to the &#39;lookupinvoice&#39; command as provided by the lnd(Golang).<br>
<br>
Hi Sarat,<br>
<br>
        I&#39;m confused; &quot;the LN repo&quot; is ambigious, as there are several,<br>
each with their own places to ask questions:<br>
<br>
<a href="https://github.com/ACINQ/eclair-wallet/" rel="noreferrer" target="_blank">https://github.com/ACINQ/eclair-wallet/</a><br>
<a href="https://github.com/ElementsProject/lightning" rel="noreferrer" target="_blank">https://github.com/ElementsProject/lightning</a><br>
<a href="https://github.com/LightningNetwork/lnd/" rel="noreferrer" target="_blank">https://github.com/LightningNetwork/lnd/</a><br>
<a href="https://github.com/nayutaco/ptarmigan" rel="noreferrer" target="_blank">https://github.com/nayutaco/ptarmigan</a><br>
<a href="https://github.com/rust-bitcoin/rust-lightning" rel="noreferrer" target="_blank">https://github.com/rust-bitcoin/rust-lightning</a><br>
<br>
Then of course there&#39;s the spec repo as well, which guides us all:<br>
<br>
        <a href="https://github.com/lightningnetwork/lightning-rfc" rel="noreferrer" target="_blank">https://github.com/lightningnetwork/lightning-rfc</a><br>
<br>
But AFAICT (though your question is off-topic for this list):<br>
<br>
        lnd has lookupinvoice which looks up by hash[1]<br>
        eclair has checkpayment which looks up by hash or bolt11[2]<br>
        c-lightning has listinvoices which can lookup by label[3], or<br>
           wait(any)invoice[4] which is used for polling.<br>
<br>
Would love someone to write a rosetta stone for the different APIs!<br>
<br>
Cheers,<br>
Rusty.<br>
<br>
[1] <a href="https://api.lightning.community/#lookupinvoice" rel="noreferrer" target="_blank">https://api.lightning.community/#lookupinvoice</a><br>
[2] <a href="https://github.com/ACINQ/eclair/wiki/API" rel="noreferrer" target="_blank">https://github.com/ACINQ/eclair/wiki/API</a><br>
[3] <a href="https://github.com/ElementsProject/lightning/blob/master/doc/lightning-listinvoices.7.txt" rel="noreferrer" target="_blank">https://github.com/ElementsProject/lightning/blob/master/doc/lightning-listinvoices.7.txt</a><br>
[4] <a href="https://github.com/ElementsProject/lightning/blob/master/doc/lightning-waitanyinvoice.7.txt" rel="noreferrer" target="_blank">https://github.com/ElementsProject/lightning/blob/master/doc/lightning-waitanyinvoice.7.txt</a><br>
</blockquote></div>