syncFromBlockchain
Sync dust from blockchain (query events and replay into local state).
Production Method: This is the main entry point for dust synchronization. Call this when loading balances to ensure dust is up-to-date.
Process:
Query dust events from indexer (scans recent blocks)
Create or load DustLocalState
Replay events into state (using dust secret key)
Sync tokens from state to database cache
Save updated state to persistent storage
Requirements:
Dust must be registered on-chain (via Lace or dApp)
Dust secret key must be derived from wallet seed at m/44'/2400'/0'/2/0
Return
true if sync succeeded, false if no dust registered or sync failed
Parameters
Wallet address to sync dust for
32-byte dust secret key (derived at role 2, index 0)
Number of recent blocks to scan (default: 100)