-
When i put the values for API Keys and Private key from the .env file I get this error
but when i put them like this by adding const PRIVATE_KEY = process.env.PRIVATE_KEY || "xyz"
const RINKEBY_RPC_URL = process.env.RINKEBY_RPC_URL || "xyz" any way i could resolve this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@0xamey make sure to add this inside rinkeby object |
Beta Was this translation helpful? Give feedback.
-
Update: I found the problem, my .env file was named as .env.example |
Beta Was this translation helpful? Give feedback.
Update: I found the problem, my .env file was named as .env.example
Changed the file name to simply
.env
and the code worked