Function generateWallet

  • Generates a new new account with a random seed phrase

    Parameters

    • mnemonicLength:
          | 12
          | 15
          | 18
          | 21
          | 24 = 12

      the amount of words to generate

    • OptionalaccountIndex: number

      account index, defaults to 0

    • OptionalcoinType: number

      the "coin type" number to use in the key derivation.

    Returns Promise<DirectSecp256k1HdWallet>