Skip to content

Commit

Permalink
feat: add amount to nut05
Browse files Browse the repository at this point in the history
In order to support paying an amountless invoice,
add amount to quote request.
  • Loading branch information
thesimplekid committed Oct 9, 2024
1 parent dc153f3 commit 564a8f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 05.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ The wallet `Alice` includes the following `PostMeltQuoteBolt11Request` data in i
{
"request": <str>,
"unit": <str_enum["sat"]>
"amount": <int|null>
}
```

Here, `request` is the bolt11 Lightning invoice to be paid and `unit` is the unit the wallet would like to pay with.
Here, `request` is the bolt11 Lightning invoice to be paid and `unit` is the unit the wallet would like to pay with. `amount` is the amount to be paid if the invoice does not have a defined amount.

The mint `Bob` then responds with a `PostMeltQuoteBolt11Response`:

Expand Down

0 comments on commit 564a8f0

Please sign in to comment.