---
title: "Get the private key corresponding to a known address"
method: POST
path: "/wallet/getPrivateKey"
tags: ["wallet"]
---

# Get the private key corresponding to a known address

`POST /wallet/getPrivateKey`

## Request body

- PrivateKeyRequest — Request for getting a secret corresponding to wallet address
  - `address` string, required — Encoded Ergo Address

## Response `200`

Successfully retrieved secret key

- string — Hex-encoded big-endian 256-bits secret exponent

## Other responses

- `404` — Address not found in wallet database
- `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)
