generateAccount static method

AptosAccount generateAccount(
  1. String mnemonics, {
  2. int addressIndex = 0,
  3. int accountIndex = 0,
})

Implementation

static AptosAccount generateAccount(String mnemonics, { int addressIndex = 0, int accountIndex = 0 }) {
  String path = "m/44'/637'/$accountIndex'/0'/$addressIndex'";
  return fromDerivePath(path, mnemonics);
}