# Mnemonic.path

Creates an Ethereum-based BIP-44 HD path.

## Imports

:::code-group
```ts [Named]
import { Mnemonic } from 'ox'
```

```ts [Entrypoint]
import * as Mnemonic from 'ox/Mnemonic'
```
:::

## Examples

```ts twoslash
import { HdKey } from 'ox'

const path = HdKey.path({ account: 1, index: 2 })
// @log: "m/44'/60'/1'/0/2"
```

## Definition

```ts
function path(
  options?: path.Options,
): string
```

**Source:** [src/core/HdKey.ts](https://github.com/wevm/ox/blob/main/src/core/HdKey.ts#L165)

## Parameters

### options

* **Type:** `path.Options`
* **Optional**

Path options.

#### options.account

* **Type:** `number`
* **Optional**

The account.

#### options.change

* **Type:** `number`
* **Optional**

The change.

#### options.index

* **Type:** `number`
* **Optional**

The address index.

## Return Type

The path.

`string`
