Create Wallet

You can use the API endpoint implementation or the JavaScript SDK

Kakr LiaaS API Spec Compatibility

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.

Create Wallet (API reference)

POST /api/Wallet/createwallet

A post request to create a wallet on the Litecoin Blockchain

Run on Postman

Headers

Name
Type
Description

Content-Type

String

application/json

Authorization*

Bearer <your api key>

Attach you API key here

Usev2*

String

Value should be true or yes

Request Body

Name
Type
Description

wallet_name*

String

type the name of the wallet you want to create

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

Base URL

https://pteri.xyz

Javascript SDK Implementation

You can use the npm package with full type-safety, this approaches provide the same level of end functionality with the API endpoint, so which one you choose will be based on your preference and what works best for your project.

Install Liaas-js
/** 
 * npm install @liaas-js
**/
 
const LiaaS = require("liaas-js");

const liaasSdk = new LiaaS();

Once you've included the script or package, you can initialize the Web SDK and integrate it with our Litecoin blockchain solutions suite.

Create wallet

//Create a wallet on the Litecoin blockchain
//pass your API key or Node URL and wallet name to be created
const response = await liaasSdk.createWallet(nodeUrl_or_apiAccessKey, walletName);

Last updated

Was this helpful?