What is Nostr?
matthewbennett / Matthew Bennett
npub1075…5mxs
2023-02-03 09:20:10

matthewbennett on Nostr: How would we do micro paywalls (sats to read longer post, more photos, etc.)..? How ...

How would we do micro paywalls (sats to read longer post, more photos, etc.)..? How do you relate an event in Nostr (noteXXXXXX) to a user (npubXXXXX) via a lightning⚡payment that has or has not been successful? It would work from a reader-author-value-psychology perspective for sure if the mechanism existed.

The basic logic is not difficult:

If npubXXX HAS paid lightning⚡invoice, CAN read full noteXXXX
If npubXXX has NOT paid lightning⚡invoice, can NOT read full noteXXXX

That's not hard to do on a normal website with Stripe and a bit of logic via a database, but how do you that on Nostr across relays and across all the clients? And what does an author include in the note to indicate it's a paid thing after a certain point? Or would that be another event type? Maybe you could do an event type with fields "snippet/free bit" and "full text/photos" and just display one or the other depending on the invoice status?

andre (npub1rvg…xrck) has written this about how they have done the paid relays (eden.nostr.land) with cameri (npub1qqq…n47m), a whitelist of paid up users at the relay level for access to the whole relay, but could it it be done (would people want it done?) for micro paywalls at the event/note level across Nostr?

https://andreneves.xyz/p/the-rise-of-paid-nostr-relays
Author Public Key
npub1075jp98z9ylsjlrulmefx0kn0gt8qckz2nz5p2n7cfhgqxwwcunqqe5mxs