Applesauce
    Preparing search index...
    • 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 del field 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.

      Parameters

      • Optionaloptions: {
            couch?: Couch;
            createDeleteEvents?: boolean;
            getCashuWallet?: CashuWalletProvider;
            unlockTokens?: boolean;
        }
        • Optionalcouch?: Couch

          optional couch used to keep each fresh token safe until its token event is published

        • OptionalcreateDeleteEvents?: boolean

          whether 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?: CashuWalletProvider
        • OptionalunlockTokens?: boolean

      Returns Action