Cashu-TS - v4.0.0-rc3
    Preparing search index...

    Class MeltBuilder<TQuote>

    Builder for melting proofs to pay a Lightning invoice or BOLT12 offer.

    Uses the generic prepareMelt / completeMelt flow under the hood, so it works for any NUT-05 style melt quote, not just BOLT11 / BOLT12.

    // Basic BOLT11 melt
    await wallet.ops.meltBolt11(quote, proofs).run();

    // BOLT12 melt with deterministic change and NUT-08 blanks callback
    await wallet.ops
    .meltBolt12(quote12, proofs)
    .asDeterministic() // counter 0 auto reserves
    .onCountersReserved((info) => console.log('Reserved', info))
    .run();

    Type Parameters

    Index

    Constructors

    Methods