0

I have a live server running a full GETH NODE in which I need to sign a transaction with a private key. The problem is I dont know how I can use the private key without explicitly providing the private key to the server. Is using hash corp a good option or is their any easier way?Is there a way to leverage having full GETH NODE to advantage?

const privateKey1 = Buffer.from(process.env.PRIVATE_KEY_1,'hex')
var wallet = new ethers.Wallet(privateKey1,provider)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.