Damus
calle · 187w
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 t...
calle profile picture
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. It can't get simpler than this.

@nostrich

1❀️11πŸ€™14
mrclownworld · 187w
This is πŸ”₯ πŸ”₯ πŸ”₯ I can’t wait for ecash to catch on as the L3 of cyber money πŸ’ͺπŸ’ͺ