Cashu-TS - v4.13.0
    Preparing search index...

    Class WalletOps

    Fluent operations builder for a Wallet instance.

    Provides chainable builders for sending, receiving, and minting. Each builder is single use. If you do not customise an output side, the wallet’s policy defaults apply.

    Index

    Constructors

    Methods

    • Builds a send that satisfies a NUT-18 payment request from this wallet's mint.

      Parameters

      • pr: PaymentRequest

        The decoded payment request.

      • proofs: ProofLike[]

        Proofs to select from.

      • Optionalamount: AmountLike

        Payer-chosen amount for amountless requests; forbidden when the request sets a.

      Returns SendBuilder

      A preconfigured SendBuilder; chain further options and .run(). The terms the request set are fixed: chaining cannot replace its lock or disable includeFees.

      Enforces the payer-side MUSTs: strict mint list, unit rule, NUT-05 melt-method support (resolved from this wallet's MintInfo), the applicable per-method fee (mf), the request's nut10 lock, and net-of-input-fees selection (includeFees(true)). Requires a loaded mint.

      If the wallet's mint, unit, or melt methods are unacceptable to the request, the request's lock cannot be honoured, or the request is invalid per NUT-18.