✒️Sign Wallet message

signing message on Litecoin Blockchain

This involves using a private key to generate a digital signature for a specific piece of data (the message) to prove ownership or authenticity without revealing the private key itself

NB: Signing a message is only possible using an L address.

Sign Wallet message (API reference)

POST /api/Wallet/sign-message

Sign Wallet message

Headers

NameTypeDescription

wallet*

String

The wallet name

Content-Type

application/json

application in JSON format

Authorization*

Bearer <your Key>

attach your API key here

passPhrase*

String

wallet encrypted key

Usev2*

String

Value should be true or yes

Request Body

NameTypeDescription

message*

String

data to be signed

address*

String

Signning Address

Sign Wallet message with Javascript SDK

Liaas SDK package installation

/** 
 * Sign Wallet message on Litecoin Blockchain
 **/
 
 
 //pass your API key, wallet name, and the encrypted key
const response = await liaasSdk.signMessageUsingWallet(
apiAccessKey,
walletName, 
passPhrase, 
address,
message);

Last updated