---
title: "Derive new key according to a provided path"
method: POST
path: "/wallet/deriveKey"
tags: ["wallet"]
---

# Derive new key according to a provided path

`POST /wallet/deriveKey`

Derives a new secret key at the BIP-32 path supplied by the caller and returns its P2PK address.
The wallet must be unlocked. The path is relative to the wallet's root and uses standard
BIP-32 notation (e.g. `m/44'/429'/0'/0/1`, with apostrophe denoting hardened indices).
The derived key is stored by the wallet so subsequent calls to `/wallet/addresses` will include it.

## Request body

- DeriveKey
  - `derivationPath` string, required — BIP-32 derivation path of the secret to derive, relative to the wallet root. Apostrophe denotes hardened indices. Example below uses a short path; a typical EIP-3 path looks like `m/44'/429'/0'/0/3`.

## Response `200`

Resulted address

- DeriveKeyResult
  - `address` string, required — Encoded Ergo Address

## Other responses

- `default` — Error

---

[API](https://skmtc.net/ergoplatform/apis/ergo-node-api.md) · [All operations](https://skmtc.net/ergoplatform/apis/ergo-node-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ergoplatform/ergo-node-api/versions/ef97e678f020/schema)
