createAccount method
Creates a new account on the Haveno daemon using the specified password
.
Throws a DaemonNotConnectedException if the havenoChannel is not connected.
Throws specific exceptions depending on the gRPC error encountered.
Implementation
Future<void> createAccount(String password) async {
if (!havenoChannel.isConnected) {
throw DaemonNotConnectedException();
}
try {
await havenoChannel.accountClient!.createAccount(CreateAccountRequest(password: password));
} on GrpcError catch (e) {
handleGrpcError(e);
}
}