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

    Class CashuAuthWallet

    Class that represents a Cashu NUT-22 wallet.

    Index

    Constructors

    Properties

    Accessors

    Methods

    • Get public keys from the mint. If keys were already fetched, it will return those.

      If keysetId is set, it will fetch and return that specific keyset. Otherwise, we select an active keyset with the unit of the wallet.

      Parameters

      • OptionalkeysetId: string

        Optional keysetId to get keys for.

      • OptionalforceRefresh: boolean

      Returns Promise<MintKeys>

      Keyset.

    • Load mint information, keysets and keys. This function can be called if no keysets are passed in the constructor.

      Returns Promise<void>

    • Mint proofs for a given mint quote.

      Parameters

      • amount: number

        Amount to request.

      • clearAuthToken: string

        ClearAuthToken to mint.

      • Optionaloptions: { keysetId?: string }

      Returns Promise<Proof[]>

      Proofs.