Skip to content

Commit

Permalink
Added x-cashu method to NUT-18\
Browse files Browse the repository at this point in the history
  • Loading branch information
Egge21M committed Dec 23, 2024
1 parent 273f6cd commit 2aa7f41
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 18.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: `<endpoint-url>`
- 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:
Expand Down

0 comments on commit 2aa7f41

Please sign in to comment.