I think I have all the pieces I need except for generating a bolt11 invoice.. or I'm totally on the wrong track
Discussion
Ooooo
This seems good.
The Alby docs seem to assume that you already have an 'invoice' but don't explain how to get one in the first place
for example:
https://github.com/getAlby/js-lightning-tools?tab=readme-ov-file#lightning-address
what do you miss?
Oh wow this looks incredible, thanks!
This is working really well (and quite easily!).
One thing I'm noticing though: when using NWC with an ecash wallet like Minibits, the successful payment doesn't have a `preimage`. Does getAlby's js-lightning-tools or sdk provide a way to handle this? I'm looking now but not seeing anything yet.
without the preimage there is no proof that the invoice was paid.
in what way should it be handled?
maybe minibits can return that?
nostr:nprofile1qqstxwlea9ah3u6kjjszu6a7lrnhqkfh8eptp2z6v0e9558tlkkl2rgpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhsz9mhwden5te0wfjkccte9ec8y6tdv9kzumn9wshszxnhwden5te0wfjkccte9ekkjmnfvf5hguewvdshx6p07xr4s5 what are we missing here?
NWC with ecash wallets is widespread on Nostr so there must be some trivial solution I just haven't found yet.
This is working, thanks! I think I'm hackily integrating it in a way that is probably even harder than NDK and nostr-tools, but I'm way too tired now to revisit it.
At least I have a viable working path to refactor later thanks to your suggestion
did you check the alby lighting-tools.
there you have easy JS code for it. see github