Class CashuAuthWallet

Class that represents a Cashu NUT-22 wallet.

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