Skip to content

Commit

Permalink
chore: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Oct 4, 2024
1 parent 8df4f1b commit 477b1e6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions 18.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@

---


Similar to [NUT-04][04], which covers melting via BOLT11 invoices, melting via [BOLT12](https://github.com/lightning/bolts/blob/master/12-offer-encoding.md) is also a two-step process: requesting a melt quote and melting tokens. This document describes both steps, focusing on BOLT12-specific considerations.


# Mint quote

To request a mint quote, the wallet of `Alice` makes a `POST /v1/mint/quote/bolt12`.
Expand Down
6 changes: 0 additions & 6 deletions 19.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

`optional`


Similar to [NUT-05][05], which covers melting via BOLT11 invoices, melting via [BOLT12](https://github.com/lightning/bolts/blob/master/12-offer-encoding.md) is also a two-step process: requesting a melt quote and melting tokens. This document describes both steps, focusing on BOLT12-specific considerations.

# Melt quote
Expand All @@ -13,7 +12,6 @@ To request a melt quote, the wallet of `Alice` makes a `POST /v1/melt/quote/bolt
POST https://mint.host:3338/v1/melt/quote/bolt12
```


The wallet `Alice` includes the following `PostMeltQuoteBolt12Request` data in its request:

```json
Expand All @@ -39,7 +37,6 @@ The mint `Bob` then responds with a `PostMeltQuoteBolt12Response`:
}
```


Where `quote` is the quote ID, `amount` the amount that needs to be provided, and `fee_reserve` the additional fee reserve that is required. The mint expects `Alice` to include `Proofs` of _at least_ `total_amount = amount + fee_reserve`. `expiry` is the Unix timestamp until which the melt quote is valid. `payment_preimage` is the payment preimage in case of a successful payment.

`state` is an enum string field with possible values `"UNPAID"`, `"PENDING"`, `"PAID"`:
Expand Down Expand Up @@ -72,7 +69,6 @@ Response of `Bob`:
}
```


## Check melt quote state

To check whether a melt quote has been paid, `Alice` makes a `GET /v1/melt/quote/bolt12/{quote_id}`.
Expand Down Expand Up @@ -152,7 +148,6 @@ Response `PostMeltQuoteBolt12Response` of `Bob`:
}
```


## Settings

The mint's settings for this nut indicate the supported method-unit pairs for melting. They are part of the info response of the mint ([NUT-06][06]) which in this case reads
Expand Down Expand Up @@ -195,5 +190,4 @@ Example `MeltMethodSetting`:
}
```


[05]: 05.md

0 comments on commit 477b1e6

Please sign in to comment.