> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# verifyMessageSignature

> Verifies a message signature using the specified EVM wallet address

## Function Signature

```typescript theme={"system"}
verifyMessageSignature(params: {
  accountAddress: string;
  message: SignableMessage;
  signature: any;
}): Promise<boolean>
```

## Description

Verifies that a message was signed by the specified wallet address. Performs message recovery and address comparison to validate the signature.

## Parameters

### Required Parameters

* **`accountAddress`** (`string`) - The wallet address that signed the message (must include `0x` prefix)
* **`message`** (`SignableMessage`) - The original message that was signed
* **`signature`** (`any`) - The signature to verify (hex string with `0x` prefix)

## Returns

* **`Promise<boolean>`** - `true` if the signature is valid, `false` otherwise

## Example

```typescript theme={"system"}
import { authenticatedEvmClient } from './client';

const evmClient = await authenticatedEvmClient();

const isValid = await evmClient.verifyMessageSignature({
  accountAddress: '0xYourWalletAddress',
  message: 'Hello, World!',
  signature: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef1b',
});

console.log('Signature valid:', isValid);
```

## Error Handling

```typescript theme={"system"}
try {
  const isValid = await evmClient.verifyMessageSignature({
    accountAddress: '0xYourWalletAddress',
    message: 'Hello, World!',
    signature: '0xYourSignature',
  });
  console.log('Verification result:', isValid);
} catch (error) {
  console.error('Failed to verify signature:', error);
}
```

## Related Functions

* [`signMessage()`](/node/reference/evm/sign-message) - Sign a message
* [`signTransaction()`](/node/reference/evm/sign-transaction) - Sign a transaction
