first post here
I wanted to develop an app to automate transactions with etherjs
My question is about this part of the code:
let walletWithProvider = new ethers.Wallet(privateKey, provider);
Where, or how do you guys normally store privateKey, specially when it's not a test wallet
My first thought was to encrypt the key and store it locally on my pc, and then asking in the program's prompt for the password, but i wanted to hear about your ideas first
.env
file and reading it in your code?