newFromMnemonicPhraseAndPath static method

Future<FuelWallet> newFromMnemonicPhraseAndPath({
  1. required String networkUrl,
  2. required String mnemonic,
  3. required String derivationPath,
})

Imports the wallet from the provided mnemonic phrase and derivation path

Implementation

static Future<FuelWallet> newFromMnemonicPhraseAndPath({
  required String networkUrl,
  required String mnemonic,
  required String derivationPath,
}) async {
  validateMnemonicPhrase(mnemonic);
  final walletUnlocked = await _wallet.newFromMnemonicAndPath(
      networkUrl: networkUrl,
      mnemonic: mnemonic,
      derivationPath: derivationPath);
  return FuelWallet(walletUnlocked);
}