Damus
calle profile picture
calle
@calle
Selling anonymous API access with Lightning + Cashu:

- Request access, server sends LN invoice
- Pay invoice, server gives you ecash
- Put ecash in HTTP header, call APIs

Server can't link payment to user, or who is doing what.

This is so simple, I must just build it.
4913❤️21🤙12
signal_and_rage · 187w
👀
farooq · 187w
Yes
Number3 · 187w
Server still has IP address and can link API calls that way, but better than alternatives
Decentony⚡ · 187w
So each API call will also return remaining ecash token?
Mr. L · 187w
I thought about using LN for monetizing API access, but this sounds better and achieves the goal to reduce roundtrips (compared to „create invoice for every request“)! If I understood Cashu correctly, you can „top up“ a balance with the first LN invoice (say, 1000 sats), and then send 10 re...
yan · 187w
Good concept
steepdawn974 · 187w
Can't you do that with a normal Bearer token? You Pay LN invoice ➡️ Server return `access_token` ➡️ you include 'Bearer ${access_token}' in Header The token validity could be based on how much you pay. e.g. 10sats per API call
Michael Anton Fischer · 187w
This post finally convinced me that there is a meaningful use case to Fediminta besides creating Fiat on Bitcoin rails.
xKyriakoZ⚡️∞/21M · 187w
Who needs anything other than btc tho
calle · 186w
I've built a proof of concept. Pay for API access with ecash. Server doesn't know who you are. - Server: a HTTP middleware with a Cashu mint and requires ecash in the HTTP header - Client: HTTP client that puts ecash into header It took me a couple hours. Mint and wallet are imported as libraries....