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:
- Open your StarKey Wallet and go to Settings
- Navigate to Security → Recovery phrase & keys
- Select Private Key, then enter your password to reveal it
- Copy the Ethereum private key — you’ll use this in your Hardhat or Foundry config files.

Never share your private key with anyone. Anyone with your private key can access your funds.
Last updated on