Wallet default address

Get default address in a wallet

​A GET request to generate the wallet's default address on the Litecoin Blockchain.

Generate wallet official address (API reference)

GET /api/Wallet/default-address

A GET request to get a default address 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 SDK

Liaas SDK package installation

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

Last updated

Was this helpful?