unlockWallet method

Future<void> unlockWallet(
  1. String password
)

Unlocks the wallet with the provided password.

This method sends an UnlockWalletRequest to unlock the wallet.

Example:

await walletsService.unlockWallet('password');

Implementation

Future<void> unlockWallet(String password) async {
  if (!havenoChannel.isConnected) {
    throw DaemonNotConnectedException();
  }
  try {
    await havenoChannel.walletsClient!.unlockWallet(UnlockWalletRequest());
  } on GrpcError catch (e) {
    handleGrpcError(e);
  }
}