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.
Published at
2025-01-05 07:23:16Event JSON
{
"id": "fb20cbacc8227052713f91875d53aeeb866551d1cd099169309d0dc976071c43",
"pubkey": "89e14be49ed0073da83b678279cd29ba5ad86cf000b6a3d1a4c3dc4aa4fdd02c",
"created_at": 1736061796,
"kind": 1,
"tags": [
[
"e",
"55a3c815e3a40f572e9a5b07c3671857720ae3fd20624ab8c176722f6d4bd113",
"",
"root"
],
[
"e",
"2118f95ac44eb9c07e06b9e9442e6e5c1a40f639fe320ed7224cc27fdc45babc",
"",
"reply"
],
[
"p",
"e989aa6e0137d52a410ecd89ae59f7adbfb0bdec9786b9181c3707954b4cfa69"
],
[
"p",
"3ab4c8ea97cd164d17f68990c1006e21e87f31a919a7013ecf2dae2e416938fd"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
],
[
"p",
"266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5"
],
[
"p",
"17538dc2a62769d09443f18c37cbe358fab5bbf981173542aa7c5ff171ed77c4"
]
],
"content": "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.\n\nAs 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.",
"sig": "19ed9d084027d7d2319b7835c56c7a1775736a791ac785b1f0f0c63ba0788eeff8db1880cb672b1b27ca9ae63599673feeb2db6d181c9c4b83e14ec7db94f71a"
}