Applesauce
    Preparing search index...
    • A method-agnostic action that mints new proofs from a paid mint quote and adds them to the wallet. The mintProofs callback performs the payment-method-specific mint call (bolt11, bolt12, onchain, …) against the loaded cashu Wallet; everything else (couch safety + token/history bookkeeping) is shared. MintTokens is the bolt11 wrapper over this action.

      Parameters

      • mint: string

        the mint url to mint the proofs from

      • mintProofs: (cashuWallet: Wallet) => Promise<Proof[]>

        a callback that mints and returns the new proofs for the paid quote

      • Optionaloptions: { couch?: Couch; getCashuWallet?: CashuWalletProvider; wallet?: Wallet }
        • Optionalcouch?: Couch

          optional couch interface for temporarily storing the minted token

        • OptionalgetCashuWallet?: CashuWalletProvider

          optional provider returning a cached cashu Wallet for a mint

        • Optionalwallet?: Wallet

          optional pre-loaded cashu Wallet for the mint

      Returns Action