pull down to refresh
257 sats \ 2 replies \ @sea_monster 3 Mar 2023 \ on: Anonymous paid API-calls. bitcoin
Is the main goal to limit clients or generate revenue? To efficiently throttle clients without requiring trust, a small proof of work can be included in the payload. I previously created one for a major exchange, which resolved their spam issues. The API gateway can adjust the difficulty level based on global demand or the number of requests per IP.
- for PoW to discourage motivated spammers, the difficulty has to be high enough that it significantly affects UX for earnest users with low end hardware afaict (ht: adam back)
- API providers can't earn from PoW
Obviously, lightning payments are on par or worse UX than (1) right now, but there's at least some hope it can be improved. Lightning payments of this type are also more likely to be widely adopted given (2).
reply
Selling anonymous API access [...]
I find that clear enough.
reply