# Getting Private Key from StarKey

## Steps to Export Your Private Key:

1. Open your **StarKey Wallet** and go to **Settings**
2. Navigate to **Security** → **Recovery phrase & keys**
3. Select **Private Key**, then enter your password to reveal it
4. Copy the **Ethereum private key** — you'll use this in your Hardhat or Foundry config files.

<figure><img src="/files/eAAkxXRhe528HF13ObHX" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Important:** Never share your private key. Store it securely — anyone with this key has full control over your wallet.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://supraoracles.gitbook.io/supra/network/evm/getting-started/foundry/getting-private-key-from-starkey.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
