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

    Function importAccountFromPrivateKey

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

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

      Parameters

      • privateKey: string

        The private key of the account to import.

      Returns ETHAccount