Getting Private Key from StarKey

To use your StarKey wallet with Hardhat or Foundry, you'll need your Ethereum private key.

Steps to Export Your Private Key:

  1. Open your StarKey Wallet and go to Settings

  2. Navigate to SecurityRecovery 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.

Important: Never share your private key. Store it securely — anyone with this key has full control over your wallet.