# Validate signed message

### Example

`validateSignedMessage` function can take multiple input parameters, first parameter is JSON object, which is required, second parameter is wallet address (optional) used for signing and third parameter is signed message (optional).

```javascript
const { signMessage, validateSignedMessage } = require('obyte/lib/utils');
const address_wif = '';
const wallet_address = 'TMWNLXR42CKIP4A774BQGNVBZAPHY7GH';
const message = 'Hello world';

const objSignedMessage = signMessage(message, address_wif);

console.log(validateSignedMessage(objSignedMessage, wallet_address, message));
console.log(validateSignedMessage(objSignedMessage, null, message));
console.log(validateSignedMessage(objSignedMessage));
```

### Returns

Returns boolean `true` if signed message is valid, otherwise boolean `false`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://obytejs.com/0.1.14/utils/validate-signed-message.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
