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

    Function createEphemeralCounterSource

    • Create a shared in-memory CounterSource.

      Use this when multiple Wallet instances share the same seed and must allocate deterministic outputs without overlapping counter ranges. Pass the returned source to each wallet via the counterSource option.

      The source is memory-only — counters do not survive page reloads. Subscribe to wallet.on.countersReserved to persist counter state to your own storage.

      Parameters

      • Optionalinitial: Record<string, number>

        Optional seed values ({ [keysetId]: nextCounter }).

      Returns CounterSource