> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# Siwe.validateMessage

:::info
`Siwe.validateMessage` is a re-export of ox's [`Siwe.validateMessage`](https://oxlib.sh/api/Siwe/validateMessage). Refer to the ox documentation for the full reference.
:::

Validates [EIP-4361](https://eips.ethereum.org/EIPS/eip-4361) message.

## Imports

```ts
import { Siwe } from 'viem/utils'
```

## Examples

```ts twoslash
// @noErrors
import { Siwe } from 'viem/utils'

Siwe.validateMessage({
  address: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
  domain: 'example.com',
  message: {
    address: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
    chainId: 1,
    domain: 'example.com',
    nonce: 'foobarbaz',
    uri: 'https://example.com/path',
    version: '1'
  },
  nonce: 'foobarbaz'
})
// @log: true
```

## Definition

```ts
function validateMessage(
  value: validateMessage.Value,
): boolean
```

## Parameters

### value

* **Type:** `validateMessage.Value`

Values to use when validating EIP-4361 formatted message.

## Return Type

Whether the message is valid.

`boolean`
