get static method

HydraPlugin get(
  1. Vault vault,
  2. Network network,
  3. int account
)

Implementation

static HydraPlugin get(Vault vault, Network network, int account) {
  final nativeNet = network.networkNativeName.toNativeUtf8();
  try {
    final ffiPlugin = DartApi.native.hydraPlugin
        .get(vault.ffi, nativeNet, account)
        .extract((res) => res.asPointer<Void>());
    return HydraPlugin(ffiPlugin, true);
  } finally {
    calloc.free(nativeNet);
  }
}