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 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
Class that represents a Cashu NUT-22 wallet.