Cashu-TS - v4.13.0
    Preparing search index...

    Type Alias KeyChainCache

    Cached view of a KeyChain.

    This is the preferred format for persisting and restoring keychain state. The cache contains keysets for all units at the mint. Use KeyChain.fromCache (which takes an explicit unit) or wallet.loadMintFromCache to restore.

    type KeyChainCache = {
        keysets: KeysetCache[];
        mintUrl: string;
        savedAt?: number;
    }
    Index

    Properties

    keysets: KeysetCache[]

    Flattened keysets and, optionally, their keys. Contains all units.

    mintUrl: string

    Mint URL that this cache belongs to.

    savedAt?: number

    Unix timestamp (ms) when the data was fetched from the mint; restoring and re-saving a cache carries the original value over, so it stays usable for TTL / staleness checks. Undefined when the provenance is unknown.