NUT-22 auth mint instance.
Optional
options: { keys?: MintKeys | MintKeys[]; keysets?: MintKeyset[] }Optional
keys?: MintKeys | MintKeys[]Public keys from the mint (will be fetched from mint if not provided)
Optional
keysets?: MintKeyset[]Keysets from the mint (will be fetched from mint if not provided)
Choose a keyset to activate based on the lowest input fee.
Note: this function will filter out deprecated base64 keysets.
Keysets to choose from.
Active keyset.
Get all active keys from the mint and set the keyset with the lowest fees as the active wallet keyset.
Keyset.
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.
Optional
keysetId: stringOptional keysetId to get keys for.
Optional
forceRefresh: booleanKeyset.
Get keysets from the mint with the unit of the wallet.
Keysets with wallet's unit.
Load mint information, keysets and keys. This function can be called if no keysets are passed in the constructor.
Class that represents a Cashu NUT-22 wallet.