generateNewWallet static method

Future<FuelWallet> generateNewWallet({
  1. required String networkUrl,
})

Implementation

static Future<FuelWallet> generateNewWallet({
  required String networkUrl,
}) async {
  final data = await _wallet.generateNewWallet();

  return FuelWallet(
    bech32Address: data['address']['bech32Address'],
    b256Address: data['address']['b256Address'],
    mnemonicPhrase: data['mnemonicPhrase'],
    privateKey: data['privateKey'],
    networkUrl: networkUrl,
  );
}