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

    Function importAccountFromPrivateKey

    • Imports a substrate account given a private key and the 'polkadot/keyring' package's class.

      It creates a substrate wallet containing information about the account, extracted in the DOTAccount constructor.

      Parameters

      • privateKey: string

        The private key of the account to import.

      Returns Promise<DOTAccount>