---
title: "Export the private key for a treasury wallet"
method: POST
path: "/v1/treasury/wallets/{chain}/export"
tags: ["Treasury Wallets"]
---

# Export the private key for a treasury wallet

`POST /v1/treasury/wallets/{chain}/export`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/treasury/wallets/{chain}/export`
- Auth: HTTP bearer

Returns the raw private key hex for the user's active wallet on
the given chain. Requires re-authentication via the `X-Auth-Confirm`
header (account password). Audit-logged as `treasury_wallet.export`.
Human users only.

## Path parameters

- `chain` string, required

## Headers

- `X-Auth-Confirm` string, password, required

## Response `200`

Private key exported

- TreasuryWalletExportResponse
  - `chain` string
  - `address` string
  - `private_key_hex` string: Raw private key in hex encoding. Handle with extreme care.

## Other responses

- `401`: Authentication required or invalid
- `403`: Insufficient permissions
- `404`: Resource not found

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/5fa0918f3b41?raw)
