ensureSynced

suspend fun ensureSynced(onSyncProgress: suspend (eventsProcessed: Int, totalEvents: Int) -> Unit? = null): DustLocalState

Get a synced DustLocalState. First call does full sync (~60s on PREPROD). All subsequent calls return the same in-memory state instantly.

Parameters

onSyncProgress

Optional callback for streaming progress during full sync.