Encrypt Wallet

Created by Admin KL, Modified on Thu, 10 Oct at 1:11 AM by Admin KL

1. What does it mean to encrypt a wallet?
Encrypting a wallet involves securing it with a 12-word mnemonic passphrase. This encryption generates an encrypted key that enhances the security of the wallet and its associated funds.


2. How do I encrypt a wallet using the Kakr LiaaS API?
To encrypt a wallet, you need to send a POST request to the /api/Wallet/encryptwallet endpoint. In the request body, include the wallet name and a 12-word mnemonic passphrase to generate the encrypted key.


3. What is the purpose of a mnemonic passphrase in wallet encryption?
The 12-word mnemonic passphrase serves as the encryption key for the wallet. It secures the wallet and ensures that only someone with the correct passphrase can decrypt and access the wallet's private keys.


4. What headers are required for encrypting a wallet?
You need the following headers in your POST request:

  • Content-Type: application/json
  • Authorization: Bearer <your API key>
  • Usev2: Set to true or yes to use version 2 of the API.

5. What information should I include in the request body?
The request body should contain:

  • wallet_name: The name of the wallet to be encrypted.
  • passphrase: A 12-word mnemonic passphrase that will be used to encrypt the wallet.

6. How do I encrypt a wallet using the LiaaS SDK?
To encrypt a wallet using the LiaaS SDK, first install the SDK package and then use the encryptWallet function. Here's an example code snippet:

javascript
Copy code
// Encrypt the wallet with a 12-word mnemonic passphrase // Pass your API key, wallet name, and the mnemonic passphrase const response = await liaasSdk.encryptWallet( apiKey, walletName, passphrase );

7. What happens after I successfully encrypt the wallet?
Once the wallet is successfully encrypted, you will receive a 200: OK response indicating that the wallet has been secured. The encrypted key will be returned for future use in transactions and wallet management.


8. How does encrypting a wallet improve security?
Encryption adds an additional layer of security by requiring the 12-word mnemonic passphrase to access the wallet’s private keys. This prevents unauthorized users from accessing or spending the funds in the wallet.


9. Can I use Postman to test the wallet encryption API?
Yes, you can use Postman to test the wallet encryption endpoint by making a POST request to /api/Wallet/encryptwallet, providing the required headers and request body (wallet name and mnemonic passphrase).


10. Is it necessary to encrypt every wallet?
Encrypting your wallet is highly recommended to secure your Litecoin and private keys, especially if you plan to store significant funds in the wallet or use it in critical applications.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article