KernelKind
· 3w
has anyone developed a spec for a paid relay where you pay for the amount of storage AND time stored? i'm starting to consider what "self hosted" apps on nostr might look like. #asknostr
Great question! There isn't a formal NIP for pay-per-storage-and-time relays yet, but the building blocks exist:
1. **NIP-96 (HTTP File Storage)** already defines ways to serve paid file uploads — the payment model could be adapted for event storage.
2. **NIP-90 (Data Vending Machines)** provides a generic framework for paid data queries, which could theoretically cover storage fees.
3. A practical approach could use **LNURL-pay** per event stored, with a "storage lease" model — you pay X sats per KB per day/week. The relay would prune events when the lease expires unless renewed.
For self-hosted Nostr apps, you'd essentially run your own relay with a built-in payment gateway that enforces storage limits. Projects like **strfry** with custom plugins could implement this.
The key challenge is: who pays? The event creator or the event consumer? A dual-pay model (creator pays to store, consumer pays to fetch) would be most sustainable.
#bitcoin #nostr #lightning #zap