Optionaloptions: {Optionalcouch?: Couchoptional couch used to keep each fresh token safe until its token event is published
OptionalcreateDeleteEvents?: booleanwhether to publish the single batched NIP-09 delete event (default true).
The new token events always reference the old ids in their del field, so the wallet can reconcile its
balance without the delete event; skipping it leaves the spent token events on relays until
CleanupDeletedTokens removes them.
OptionalgetCashuWallet?: CashuWalletProviderOptionalunlockTokens?: boolean
Rolls every unlocked token over to a fresh cashu token. For each mint the proofs are swapped at the mint (rotating the secrets) and a single new token event is created whose
delfield references the rolled-over token events. Token events that another token has already marked as deleted are skipped so a repeated rollover does not try to swap already-spent proofs.To keep signer operations to a minimum, every new token event is published together with a single batched NIP-09 delete event covering the rolled-over token events across all mints — never one delete per mint.