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

    Function importAccountFromPrivateKey

    • Imports a solana account given a private key and the Keypair solana/web3.js package's class.

      It creates a solana wallet containing information about the account, extracted in the SOLAccount constructor.

      Parameters

      • privateKey: Uint8Array

        The private key of the account to import.

      Returns SOLAccount