Generate Address

Created by Admin KL, Modified on Mon, 7 Oct at 4:34 PM by Admin KL

Kakr Litecoin as a Service (Generate Address)

To derive an address from the created wallet, utilize this endpoint. This process involves providing the address type and label while additionally including the Encrypted passphrase and wallet name in the request header.

Create Address (API reference)

POST /api/Address/createAddress

A post request to create an address on the Litecoin Blockchain

Headers

NameTypeDescription

Content-Type

application/json

Authorization*

Bearer <your api key>

Attach your API key here

wallet*

String

The wallet Name you created

encryptedPassphrase*

String

Encrypted PassPhrase

Usev2*

String 

Value should be true or yes

Request Body

NameTypeDescription

label*

string

Label of the Address

type*

Number

the type of address to be generated fom the wallet for example type of 1 will generate a Legacy address (LgtX3V4qf55zZFsaD8dYLxPv3ZcMn5PCLa) 

 type of 2 or any other number will generate SegWit Address (M9PU6rzebMofSVjbi2LALPqWJAQ3hMhkGs) 

type of 3 will generate native-SegWit Address (ltc1qytr4etxl3sqvmfa0ag7aj8md7spmh7puz0amu7) 

type of 4 will generate MWEB address (ltcmweb1qqfcys5c3xdgfdqvp5ena0j32aznlfnl9798hyzg3smmexzxgtg7m5q6qy0lnfpd2kdug0fp27k7wk838e5t8jsye7fcm7frhvqzwz5362yylw3mg,

exclusive to enterprise plan see MWEB)

200: OK Successfully created address

API base URLhttps://pteri.xyz

Create or generate a Wallet Address
/** 
 * Create or generate an address from a wallet
 **/
 
 //pass your API key and the wallet name
 //the type parameter is the type of address to be generated from the wallet for example type of 1 will generate a Legacy address (LgtX3V4qf55zZFsaD8dYLxPv3ZcMn5PCLa) while type of 2 or any other number will generate SegWit Address (M9PU6rzebMofSVjbi2LALPqWJAQ3hMhkGs) then type of 3 will generate native-SegWit Address (ltc1qytr4etxl3sqvmfa0ag7aj8md7spmh7puz0amu7)
const response = await liaasSdk.createAddress(apiAccessKey,
wallet,
label,
type,
encrpytedPassphrase)

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