newFromMnemonicPhrase static method

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

Imports the wallet from the provided mnemonic phrase

Implementation

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