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

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

Utility functions for generating and working with [BIP-32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki) HD Wallets.

:::info
The `HdKey` module is a friendly wrapper over [`@scure/bip32`](https://github.com/paulmillr/scure-bip32), an **audited** implementation of [BIP-32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki) HD Wallets.
:::

## Functions

| Name                | Description                         |
| ------------------- | ----------------------------------- |
| [`HdKey.fromExtendedKey`](/docs/utilities/hdkey/fromExtendedKey) | Creates a HD Key from an extended private key. |
| [`HdKey.fromJson`](/docs/utilities/hdkey/fromJson) | Creates a HD Key from a JSON object containing an extended private key (`xpriv`). |
| [`HdKey.fromSeed`](/docs/utilities/hdkey/fromSeed) | Creates a HD Key from a master seed. |
| [`HdKey.path`](/docs/utilities/hdkey/path) | Creates an Ethereum-based BIP-44 HD path. |

## Types

| Name                | Description                         |
| ------------------- | ----------------------------------- |
| [`HdKey.HdKey`](/docs/utilities/hdkey/types#hdkeyhdkey) | Root type for a Hierarchical Deterministic (HD) Key. |
