I am trying to create an application where each user is assigned his own private key and he needs to manually import the account in Metamask extension and then he can proceed with the transaction. Is there any way I can automatically set the private key in client-side Metamask Extension?

1 Answer 1


No it's not possible. These operations must be validated by the user as it would be a security issue if that function was enabled.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.