generateNewWallet static method
Generates a mnemonic phrase and a wallet from it
Implementation
static Future<FuelWallet> generateNewWallet({
required String networkUrl,
}) async {
final ISdkWallet sdkWallet;
if (_isBeta3Url(networkUrl)) {
final beta3Wallet = await fuels_beta3.FuelWallet.generateNewWallet(
networkUrl: networkUrl);
sdkWallet = FuelsBeta3SdkWallet(beta3Wallet);
} else {
final fuelsWallet =
await fuels.FuelWallet.generateNewWallet(networkUrl: networkUrl);
sdkWallet = FuelsSdkWallet(fuelsWallet);
}
return FuelWallet(sdkWallet);
}