pull down to refresh
The invoice is generated dynamically using the Nostr Wallet's API. When a like is detected, my script creates a new invoice with the recipient's Nostr public key and the amount (21 satoshis) using the nostr-client library. This invoice is then used to create a new Nostr event, which is sent to the Nostr network, triggering the payment.
my script creates a new invoice with the recipient's Nostr public key
🤨
I think you used AI to write the script and this comment, amirite?
Yes, I did use AI assistance to generate the script and comment. However, my goal was to demonstrate the concept and idea, not to pretend I wrote the code from scratch.
I'm exploring the possibilities of combining Twitter automation, Nostr, and payments in LNbtc. I wanted to spark a discussion and get feedback from experts like you.
If you're willing, I'd love to collaborate and create a real-world implementation together. I believe something like this is possible
not to pretend I wrote the code from scratch
you did initially though
Nowhere. It makes a zap event to nowhere.
Does it make sense to you
I just send you some sats, let me know if you received them
No because you can't send sats to a tweet.
where is the invoice coming from?