connectToNode function

void connectToNode()

Implementation

void connectToNode() {
  final errorBoxPointer = monero_flutter.buildErrorBoxPointer();

  monero_flutter.bindings.connect_to_node(errorBoxPointer);
  final errorInfo = monero_flutter.extractErrorInfo(errorBoxPointer);

  if (0 != errorInfo.code) {
    throw Exception(errorInfo.getErrorMessage());
  }
}