If I want to implement zaps on my lightning service I basically need to broadcast an event when I detect a successful lightning payment?
Anyone have a Js/ts/python example by any chance?
If I want to implement zaps on my lightning service I basically need to broadcast an event when I detect a successful lightning payment?
Anyone have a Js/ts/python example by any chance?
Is there something in Golang, too? π
Think ln tip bot does it and that's in go.
https://github.com/LightningTipBot/LightningTipBot/tree/main/internal/lnurl
I've been working on a rust one. Few more issues to track down though
kind 9734 for the request, and kind 9735 for the zap paid. My Polly Botzzapp looks for messages of kind 9735 in response to events it created as polls, then parses the bolt11 invoice for the amount to associate to the answer choice. Right now its just PoC, written in Python for the main logic, with callouts to noscl for fetching messages. Plan is to rewrite entirely in go
We have. Look for Galoy-nostr on our GaloyMoney repo.