@aleph-sdk/monorepo
    Preparing search index...

    Function importAccountFromMnemonic

    • Imports an ethereum account given a mnemonic and the 'ethers' package.

      It creates an ethereum wallet containing information about the account, extracted in the ETHAccount constructor.

      Parameters

      • mnemonic: string

        The mnemonic of the account to import.

      • derivationPath: string = "m/44'/60'/0'/0/0"

        The derivation path used to retrieve the list of accounts attached to the given mnemonic.

      Returns ETHAccount