Documentation
    Preparing search index...

    Function cleanupNappState

    • Remove all state entries for a napplet identity. Clears both new-format and legacy-format keys for completeness. Used during napplet cleanup when a window is closed.

      Parameters

      • pubkey: string

        The napplet's pubkey (needed for legacy key cleanup)

      • dTag: string

        The napplet's dTag

      • aggregateHash: string

        The napplet's build hash

      • statePersistence: StatePersistence

        State storage backend

      Returns void

      import { cleanupNappState } from '@kehto/runtime';

      cleanupNappState(pubkey, dTag, aggregateHash, statePersistence);