newFromPrivateKey method

  1. @override
Future<DartWalletUnlocked> newFromPrivateKey({
  1. required String networkUrl,
  2. required String privateKey,
})
override

Implementation

@override
Future<DartWalletUnlocked> newFromPrivateKey({
  required String networkUrl,
  required String privateKey,
}) async {
  final w = await fuels.WalletUnlocked.newFromPrivateKey(
    bridge: _bridge,
    nodeUrl: networkUrl,
    privateKey: removeHexPrefix(privateKey),
  );
  return await MobileWalletUnlocked.fromRust(w, networkUrl);
}