Encrypt Wallet

Encrypt wallet

The purpose of this endpoint is to enable the developer to input a set of 12-word mnemonics. These mnemonics serve as the encryption key for the wallet and are used to generate the Encrypted key. The public key generated can then be utilized to create an address within that specific wallet.

Create an Encrypted Wallet (API reference)

POST /api/Wallet/encryptwallet

A post request to encrypt the created wallet

Headers

NameTypeDescription

Content-Type

application/json

application/json

Authorization*

Bearer <your api key>

wallet*

String

Wallet name

Usev2*

String

Value should be true or yes

Request Body

NameTypeDescription

passphrase*

String

12 words length characters separated with space

Encrypt wallet using SDK

Liaas SDK package installation

/** 
 * Secure your created wallet by encrypting it with a 12-word mnemonic phrase, and receive an encrypted key as the return value.
 **/
 
 //Encrypt the wallet with the 12 passphrases
 //pass your API key and the created wallet name
const response = await liaasSdk.encryptWallet(
apiKey,
walletName,
passphrase);

Last updated