Change wallet passphrase

You can use the API endpoint implementation or the JavaScript SDK

The Kakr LiaaS blockchain service is a standardized specification for developers building on top of Kakr LiaaS that allows an application to perform an entire Litecoin wallet system's actions without needing to learn that pinning service's unique API postman.

Change Wallet passphrase (API Reference )

POST /api/Wallet/change-passphrase

A post request to change a wallet passphrase on the Litecoin Blockchain

Headers

Name
Type
Description

Content-Type*

String

application/json

Authorization*

Bearer <your api key>

Attach your API key here

wallet*

String

Wallet name

Usev2*

String

Value should be true or yes

Request Body

Name
Type
Description

oldpassphrase*

String

current passphrase of the wallet

newpassphrase*

String

new wallet passphrase and must be 12 words in combine with white space separating each word

Javascript SDK Implementation

Liaas SDK package installation

/** 
 * change wallet passpharse
**/

//pass your API key or Node URL and wallet name to be created
const response = await liaasSdk.changeWalletPassphrase(
nodeUrl_or_apiAccessKey,
wallet,
old_passphrase,
new_passphrase)

Last updated