Zap Timmy from the Workshop #15
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & Why
Visitors should be able to send a spontaneous Lightning zap directly to Timmy's npub — a tip, a cheer, a thank-you. Zaps are the native Nostr value-transfer primitive. Closes the loop between Timmy's Nostr identity and his Lightning infrastructure.
Done looks like
zapstable for the performance dashboardOut of scope
Tasks
/api/zapPOST endpoint that generates a LNbits invoice; poll endpoint or webhook for payment confirmation.zapstable (amount_sats, message, paid_at); record on payment confirmed.Relevant files
artifacts/api-server/src/lib/lnbits.tsartifacts/api-server/src/routes/events.tsartifacts/api-server/src/lib/agent.tsthe-matrix/js/payment.jsthe-matrix/js/ui.jsthe-matrix/js/agents.js