Skip to main content

Minting Proofs

Minting is the process of creating new Proofs by paying a lightning invoice issued by the mint. This is a three step process:

  1. Request the mint quote for amount x
  2. Settle the attached payment request
  3. Mint Proofs
const quoteRes = await wallet.createMintQuote(21);
const paymentRequest = quoteRes.request;

// Settle the payment request, then proceed
const proofs = await wallet.mintProofs(21, quoteRes.quote);

Options

mintProofs accepts a range of options to control the shape of the minted Proofs. Check out the API Reference for more information