Applesauce
    Preparing search index...
    • An action that deletes old token events and adds a spend history item

      Parameters

      • spent: NostrEvent[]
      • change: Token
      • Optionaloptions: { couch?: Couch; createDeleteEvents?: boolean }
        • Optionalcouch?: Couch

          optional couch interface for temporarily storing the change token

        • OptionalcreateDeleteEvents?: boolean

          whether to publish a NIP-09 delete event for the spent token events (default true). The change token event always references the spent ids in its del field, so the wallet can reconcile its balance without the delete event; skipping it saves a signing operation at the cost of leaving the spent token events on relays until CleanupDeletedTokens.

      Returns Action