initializeIfNeeded

suspend fun initializeIfNeeded(address: String): Boolean

Initialize dust wallet for an address if not already initialized.

Creates new DustLocalState and persists it to storage. If state already exists, does nothing (idempotent).

When to call:

  • On first wallet creation

  • When user wants to start using dust features

  • Before any other dust operations

Return

true if initialized, false if already exists

Parameters

address

Wallet address to initialize dust for