Skip to content

Commit

Permalink
longer
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Sep 18, 2024
1 parent c694012 commit bba65b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 05.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Melting tokens is the opposite of minting tokens (see [NUT-04][04]). Like mintin

In the first request the wallet asks the mint for a quote for a `request` it wants paid by the mint and the `unit` the wallet would like to spend as inputs. The mint responds with a quote that includes a `quote` id and an `amount` the mint demands in the requested unit. For the method `bolt11`, the mint includes a `fee_reserve` field indicating the reserve fee for a Lightning payment.

In the second request, the wallet includes the `quote` id and provides `inputs` that sum up to `amount+fee_reserve` in the first response. For the method `bolt11`, the wallet can also include `outputs` in order for the mint to return overpaid Lightning fees (see [NUT-08][08]). The mint responds with a payment `state` and, if `"PAID"`, with a `payment_preimage` as a proof of payment. If the request included `outputs`, the mint may respond with `change` for the overpaid fees (see [NUT-08][08]).
In the second request, the wallet includes the `quote` id and provides `inputs` that sum up to `amount+fee_reserve` in the first response. For the method `bolt11`, the wallet can also include `outputs` in order for the mint to return overpaid Lightning fees (see [NUT-08][08]). The mint responds with a payment `state`. If the `state` is `"PAID"` the response includes a `payment_preimage` as a proof of payment. If the request included `outputs`, the mint may respond with `change` for the overpaid fees (see [NUT-08][08]).

We limit this document to mint quotes of `unit="sat"` and `method="bolt11"` which requests a bolt11 Lightning payment (typically paid by the mint from its Bitcoin reserves) using ecash denominated in Satoshis.

Expand Down

0 comments on commit bba65b9

Please sign in to comment.