From 2aa7f4113043fd55a26d82345b5dc8309a91d355 Mon Sep 17 00:00:00 2001 From: Egge Date: Mon, 23 Dec 2024 19:33:44 +0100 Subject: [PATCH] Added x-cashu method to NUT-18\ --- 18.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/18.md b/18.md index e1062a5d..305a609c 100644 --- a/18.md +++ b/18.md @@ -78,6 +78,15 @@ The `n` tag specifies the NIPs the receiver supports. At least one tag value MUS The execute the payment, the sender makes a `POST` request to the specified endpoint URL with the `PaymentRequestPayload` as the body. +#### X-Cashu + +- type: `x-cashu` +- target: `` +- tags: `[["c", "replay"]]` + +The payment is expected in the X-Cashu header on a request to the specified endpoint. +The tags specify constraints that the request MUST have. `replay` can be found in Payment Requests on HTTP 402 responses and requires that the exact same request is send again, but with a X-Cashu header paying the PR. + ## Payment payload If not specified otherwise, the payload sent to the receiver is a `PaymentRequestPayload` JSON serialized object as follows: