Open LAMike310 opened 5 years ago
Yep, this is something I hadn't covered yet but there are two issues at play here.
I'll be sure to add some notes to the guides about this. I had planned on talking more about it with step 5 for productionizing your lapp.
Hey this is the spot I'm stuck as well. I'm new to using my zap node and the payment's just not going through. I'm a little confused as to where the invoice being generated in this app is being sent to? Is it trying to send to my own node? Where is that determined in the code?
I'm a little confused as to where the invoice being generated in this app is being sent to? Is it trying to send to my own node? Where is that determined in the code?
That depends on what you (as a user) do with the invoice you're presented with when you try to make a post. If you click on the link or paste it back into Zap, then yes you're trying to make a payment to your own node. The code doesn't do anything to limit who the sender will be, since BOLT-11 invoices can't encode who pays them.
If you want to test out a payment but can't setup a second node, I suggest you try out a custodial wallet to make it easier. Something like BlueWallet or Bitlum. These are only setup for mainnet though.
I see, so the code is generating an invoice for your node. Makes sense. So I could pull that invoice into bluewallet and attempt to pay it from there? Sorry for the super basic questions, still new to this lightning thing.
No worries. Yep, you could definitely do that! Unfortunately I didn't implement a QR code for this go of it though, so it might be a little more difficult to use on a mobile device. I planned to use a library as a part of the WebLN stuff in part 4 that'll display one for us though.
Having an issue completing the payment for my post. I first thought it was because I was trying to send a payment to myself, since my Joule extension and web server were operating from the same node.
Then I tried in my BlueWallet, and I got another error, which might have to do with inbound liquidity?
Do I need to get some inbound liquidity to complete this tutorial?