init static method
Implementation
static void init(
Vault vault, String unlockPassword, Network network, int account) {
final nativePwd = unlockPassword.toNativeUtf8();
final nativeNet = network.networkNativeName.toNativeUtf8();
try {
return DartApi.native.hydraPlugin
.init(vault.ffi, nativePwd, nativeNet, account)
.extract((res) => res.asVoid);
} finally {
calloc.free(nativeNet);
calloc.free(nativePwd);
}
}