backupAccount method

Future<void> backupAccount()

Implementation

Future<void> backupAccount() async {
  if (!havenoChannel.isConnected) {
    throw DaemonNotConnectedException();
  }
  try {
    // Need to check what this is actually returning #TODO
    havenoChannel.accountClient!.backupAccount(BackupAccountRequest());
  } on GrpcError catch (e) {
    // Will need to catch whatever exception is thrown for invalid password
    handleGrpcError(e);
  }
}