loadState

suspend fun loadState(address: String): DustLocalState?

Deserializes DustLocalState for use in fee payment.

Use Case: Called by DustActionsBuilder to get state pointer for creating DustSpend actions.

IMPORTANT: Caller MUST call saveState() after creating spends to persist the updated state. Caller MUST call state.close() when done.

Return

DustLocalState instance, or null if not found

Parameters

address

Wallet address