> **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.

# Mnemonic.validate

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

Checks if a mnemonic is valid, given a wordlist.

## Imports

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

## Examples

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

const mnemonic = Mnemonic.validate(
  'buyer zoo end danger ice capable shrug naive twist relief mass bonus',
  Mnemonic.english
)
// @log: true
```

## Definition

```ts
function validate(
  mnemonic: string,
  wordlist: string[],
): boolean
```

## Parameters

### mnemonic

* **Type:** `string`

The mnemonic to validate.

### wordlist

* **Type:** `string[]`

The wordlist to use.

## Return Type

Whether the mnemonic is valid.

`boolean`
