Documentation
    Preparing search index...

    Interface StatePersistence

    State storage — runtime calls these for napplet-scoped key-value storage. All keys are pre-scoped by the runtime (dTag:hash:userKey).

    interface StatePersistence {
        calculateBytes(prefix: string, excludeKey?: string): number;
        clear(prefix: string): void;
        get(scopedKey: string): string | null;
        keys(prefix: string): string[];
        remove(scopedKey: string): void;
        set(scopedKey: string, value: string): boolean;
    }
    Index

    Methods