I have a private key, but I don't have a mnemonic word, so I can't transfer lisk. When can lisk wallet support the function of importing a private key?

I have a private key, but I don’t have a mnemonic word, so I can’t transfer lisk. When can wallet support the function of importing a private key? not just only support 12 passphrase?

Hi @asamu!
Thanks for your question.
Lisk Desktop will not support passphrase imports in the foreseeable future.

oh ! I bought 10000 LSK in 2017, at that time, only the private key had no mnemonic words,I kept the private key。Can’t my LSK transfer out?

Hi @asamu!
There is a possibility, but it is not so straight forward. It includes the following steps:

  1. Use the @liskhq/lisk-transactions package to create a new transfer transaction. Don’t provide the passphrase, which will create an unsigned transaction object.
    https://lisk.io/documentation/lisk-sdk/v2/reference/lisk-elements/packages/transactions.html#type-0-transfer
  2. Use the getTransactionBytes method of the same package with the newly created transaction object, to get the transaction Bytes:
    https://lisk.io/documentation/lisk-sdk/v2/reference/lisk-elements/packages/transactions.html#gettransactionbytes
  3. Use the signDataWithPrivateKey method of the @liskhq/lisk-cryptography package:
    https://github.com/LiskHQ/lisk-sdk/blob/v2.3.8/elements/lisk-cryptography/src/sign.ts#L224-L231
  4. Broadcast the signed transaction via the API client:
    https://lisk.io/documentation/lisk-sdk/v2/reference/lisk-elements/packages/api-client/transactions.html#broadcast

This should be more or less all steps to sign a transaction with the private key. Please let me know if it fixed your problem!

image

There is not the function transactions.transfer

Make sure you installed the correct version of lisk-transactions, which should be 2.3.1 in your case :slight_smile: