damus icon indicating copy to clipboard operation
damus copied to clipboard

Lightning Zaps: native, verifiable lightning notes on nostr

Open jb55 opened this issue 2 years ago • 5 comments

Added initial lightning zaps/tipping integration

Todo

  • [ ] Create zap request invoices within the client (zap button)
  • [ ] Event zap lists
  • [ ] Tally zaps on events
  • [ ] Show zaps on your profile
  • [ ] Anonymous zaps

Changelog-Added: Receive Lightning Zaps

jb55 avatar Jan 17 '23 00:01 jb55

So how do we send our application/nostr metadata to the LNURL endpoint? :-P

/@jb55?amount=1&nostr=encodeURIComponent(JSON.stringify(event)) ?

spcxta avatar Jan 17 '23 11:01 spcxta

I still need to write it up, but I've been doing:

nostril --kind 9734 --sec $DAMUS_SEC --content "zappin you some sats!" --tags '[["p","32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"],["relays","wss://nostr-relay.wlvs.space","wss://nostr-pub.wellorder.net","wss://relay.nostr.bg","wss://nostr.v0l.io","wss://nostr.orangepill.dev"]]' > zapreq.json
curl -s "https://sendsats.lol/@jb55?nostr=$(<zapreq.json jq -cr @uri)&amount=50000"

damus will be able to do this soon (zap button)

jb55 avatar Jan 17 '23 14:01 jb55

Will be changing this to remove the extraneous lnurl metadata object. will just commit directly to the 9734 note.

jb55 avatar Jan 18 '23 21:01 jb55

I wanted to try and run this to see how it's gonna work but Xcode is complaining it can't find a couple types Zap and ZapTarget. You probably have your own branch but I'd like to test it if possible!

joelklabo avatar Jan 23 '23 05:01 joelklabo

@joelklabo should be fixed now

jb55 avatar Jan 23 '23 18:01 jb55

merged but lots more to do

jb55 avatar Feb 04 '23 20:02 jb55