You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-5Lines changed: 26 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,11 +94,32 @@ npm run compile
94
94
95
95
#### 3. Environment Setup
96
96
97
-
Create `.env` file and add your environment variables. You can use `.env.example` as a template.
97
+
This project uses [Hardhat Keystore](https://hardhat.org/plugins/nomicfoundation-hardhat-keystore) to securely manage sensitive configuration variables like private keys and RPC URLs. Secrets are stored encrypted and never committed to disk in plain text.
98
98
99
-
If you are going to use public network, make sure you include the right RPC provider for that network.
99
+
**Set your private key**
100
100
101
-
Make sure you include either `MNEMONIC` or `PRIVATE_KEY` in your `.env` file.
101
+
```shell
102
+
npx hardhat keystore set PRIVATE_KEY
103
+
```
104
+
105
+
**Set your RPC URLs** (for the networks you plan to use)
106
+
107
+
```shell
108
+
npx hardhat keystore set SEPOLIA_RPC_URL
109
+
npx hardhat keystore set MAINNET_RPC_URL
110
+
```
111
+
112
+
**Set your Etherscan API key** (for contract verification)
0 commit comments