# 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="https://content.gitbook.com/content/oDAXpbcTqldUcJ6e1yaj/blobs/t0UPecr6TJosfORojZ6h/image%20(11).png" 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 %}
