removeWalletPassword method

Future<void> removeWalletPassword(
  1. String password
)

Removes the wallet password, leaving the wallet unencrypted.

This method sends a RemoveWalletPasswordRequest to remove the password from the wallet, effectively making the wallet unencrypted.

Example:

await walletsService.removeWalletPassword('password');

Implementation

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