Wallet default address v2

Get default address (with Pvt. key) in a wallet

​A GET request to generate the wallet's default address along with its private-key on the Litecoin Blockchain.

Generate wallet official address (API reference)

GET /api/Wallet/default-address-v2

A GET request to get a default address with its private key from the specified wallet on the Litecoin Blockchain.

Query Parameters

Name
Type
Description

addressType*

Int

The type of address - Legacy, Segwit, Native Segwit and MWEB indicated by 1, 2, 3 and 4 respectively.

Headers

Name
Type
Description

Content-Type

application/json

Authorization*

Bearer <your api key>

attach your API key here

mnemonics*

String

The 12-word mnemonic passphrase separated by space

Usev2*

String

Value should be true or yes

Wallet default Address v2 SDK

Liaas SDK package installation

/** 
 * get the wallet's default address with private key
**/
 
//pass your API key or Node URL, wallet name and mnemonics
const response = await liaasSdk.walletDefaultAddress_v2(
 nodeUrl_or_apiAccessKey, 
 mnemonics, 
 addressType = 1
);

Last updated

Was this helpful?