You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Melting** is the reverse of [minting](minting.md). It involves paying [Proofs](https://github.com/cashubtc/nuts/blob/main/00.md#proof) back to the mint to settle an external Lightning invoice. This process consists of three steps:
8
+
9
+
1. Request a melt quote for the invoice.
10
+
2. Submit the required Proofs (including a fee reserve, if applicable).
11
+
3. Confirm whether the invoice was paid and collect any change.
12
+
13
+
:::warning
14
+
Mints only refund overpaid fees. To ensure your inputs match the required amount, use `CashuWallet.send()` beforehand to swap Proofs as needed.
Mints may include a fee reserve to cover anticipated Lightning fees. The `cashu-ts` library automatically appends [blank outputs](https://github.com/cashubtc/nuts/blob/main/08.md) to the melt request and mints new Proofs if change is returned.
29
+
30
+
## Options
31
+
32
+
`meltProofs` accepts a range of options to control the shape of the minted Proofs. Check out the [API Reference](https://github.com/cashubtc/cashu-ts/blob/main/src/CashuWallet.ts) for more information
Copy file name to clipboardExpand all lines: docs/02-Guides/minting.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ sidebar_position: 1
4
4
5
5
# Minting Proofs
6
6
7
-
**Minting** is the operation of making a Lightning payment to the mint to receive some [Proofs](https://github.com/cashubtc/nuts/blob/main/00.md#proof)in return.
7
+
**Minting** is the process of creating new [Proofs](https://github.com/cashubtc/nuts/blob/main/00.md#proof)by paying a lightning invoice issued by the mint.
0 commit comments