Function generateWallet

  • Creates a DirectSecp256K1HdWallet object given the account index.

    Returns

    A DirectSecp256k1HdWallet object representing a newly generated wallet.

    Parameters

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

      The length of the mnemonic phrase to generate with the wallet.

    • Optional accountIndex: number

      The account index.

    Returns Promise<DirectSecp256k1HdWallet>

Generated using TypeDoc