What is Nostr?
quentin / Quentin
npub138s…x624
2025-01-05 07:23:16
in reply to nevent1q…9gsw

quentin on Nostr: BUD-07 outlines generating a 402 status code for the GET method when attempting to ...

BUD-07 outlines generating a 402 status code for the GET method when attempting to access a blob. To implement what you’re suggesting, it could be as simple as providing a dedicated URL (like a “tips” endpoint), where the server would return a 402 HTTP status code along with a X-Lightning or X-Cashu header. If the client is a browser, it would require a third-party extension/app like Alby to handle the payment.

As far as I see it, there shouldn’t be any major obstacles, as long as we adhere to (and maybe stretch a little 🤣) the BUD guidelines.
Author Public Key
npub138s5hey76qrnm2pmv7p8nnffhfddsm8sqzm285dyc0wy4f8a6qkqtzx624