@cashu/cashu-ts
    Preparing search index...

    Class MintBuilder<M, HasPrivKey>

    Builder for minting proofs from a quote.

    Bolt12 requires privkey by default, bolt11 only for locked quotes. The compiler will throw an error if bolt12 and privkey() is omitted: MintBuilder<"bolt12", false>' is not assignable...

    const proofs = await wallet.ops
    .mint(100, quote)
    .asDeterministic() // counter 0 auto reserves
    .onCountersReserved((info) => console.log(info))
    .privkey('sk')
    .run();

    Type Parameters

    • M extends "bolt11" | "bolt12"
    • HasPrivKey extends boolean = M extends "bolt12" ? false : true
    Index

    Constructors

    Methods

    • Use deterministic outputs for the minted proofs.

      Parameters

      • counter: number = 0

        Starting counter. Zero means auto reserve using the wallet’s CounterSource.

      • Optionaldenoms: number[]

        Optional custom split. Can be partial if you only need SOME specific amounts.

      Returns MintBuilder<M, HasPrivKey>

      If denoms specified, proofsWeHave() will have no effect.