damus
damus copied to clipboard
Lightning Zaps: native, verifiable lightning notes on nostr
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
So how do we send our application/nostr metadata to the LNURL endpoint? :-P
/@jb55?amount=1&nostr=encodeURIComponent(JSON.stringify(event)) ?
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)
Will be changing this to remove the extraneous lnurl metadata object. will just commit directly to the 9734 note.
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 should be fixed now
merged but lots more to do