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

# HdKey.path

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

Creates an Ethereum-based BIP-44 HD path.

## Imports

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

## Examples

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

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

## Definition

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

## 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`
