💱Verify Message

verify message on Litecoin Blockchain

Verifying a message on the blockchain involves confirming the authenticity of a message by using a public key and a digital signature.

NB: Verifying an address message is only possible for an L address.

Verify digital message (API reference)

POST /api/Utilities/VerifyMessage

Verify digital message

Headers

Name
Type
Description

Content-Type

application/json

application in JSON format

Authorization*

Bearer <API key>

attach your API key here

Usev2*

String

Value should be true or yes

Request Body

Name
Type
Description

message*

String

data to be signed

address*

String

Address which signed the message

signature*

String

signature that was generated from signing of message

Verify message with Javascript SDK

Liaas SDK package installation

/** 
 * verify message on Litecoin Blockchain
**/
 
//pass your API key or Node URL, wallet name, and the encrypted key
const response = await liaasSdk.verifyMessage(
nodeUrl_or_apiAccessKey,
address, 
message, 
signature);

Last updated

Was this helpful?