On this page

latest contributor to this doc

Last Edit:

@smk762

Verify Message

API-v2verify_message

The verify_message method allows you to confirm the authenticity of a signed message. By using the original message, the wallet's address, and the signature, the verification process can confirm that the message was created by the owner and that it has not been altered.

ParameterTypeRequiredDescription
addressstringThe address used to sign the message.
coinstringThe coin to verify the message with.
messagestringThe message input via the sign_message method.
signaturestringThe signature generated for the message.

ParameterTypeDescription
is_validbooleantrue if the message signature is valid; false if it is not.

Verify Message

POST
verify_message
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "verify_message",
  "mmrpc": "2.0",
  "id": 0,
  "params": {
    "coin": "DOC",
    "message": "Between subtle shading and the absence of light lies the nuance illusion",
    "signature": "H43eTmJxBKEPiHkrCe/8NsRidkKCIkXDxLyp30Ez/RwoApGdg89Hlvj9mTMSPGp8om5297zvdL8EVx3IdIe2swY=",
    "address": "RUYJYSTuCKm9gouWzQN1LirHFEYThwzA2d"
  }
}

ParameterTypeDescription
PrefixNotFoundstringsign_message_prefix is not set in coin config
CoinIsNotFoundstringSpecified coin is not found
InvalidRequeststringMessage verification is not supported by the given coin type
InternalErrorstringAn internal error occurred during the verification process
SignatureDecodingErrorstringGiven signature could not be decoded
AddressDecodingErrorstringGiven address could not be decoded