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

NameTypeDescription

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

NameTypeDescription

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

Kakr LiaaS users looking to utilize the Litecoin Blockchain Services API can do so from our dedicated API endpoint base URL:

https://pteri.xyz

Javascript SDK Implementation

Install Liaas-lib
/** 
 * change wallet passpharse
 **/

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

Last updated