refreshState

suspend fun refreshState(walletServerProvider: WalletServerProvider)

Gets the document state from the Issuer and updates the .state property with the value.

Unlike reading from the state property, this performs network I/O to communicate with the issuer.

If the document doesn't exist (for example it could have been deleted recently) the condition in state is set to DocumentCondition.NO_SUCH_DOCUMENT.

Parameters

walletServerProvider

the wallet server provider.