Skip to content

I am trying to paste the private key during the import process, but I always receive the error indicating that the private key is invalid. However, the private key is copied directly from another command that works correctly: #3300

Discussion options

You must be logged in to vote

Actually this error was faced by me and the solution to this error is:
while copying the private key from metamask there is no 0x(hexadecimal prefix)
You have to add this while inserting the private key in .env file or whatever method you are using like inside the defaultkey you should paste the metamask private key with prefix '0x'.
Hope this solution helps!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@EngrPips
Comment options

Answer selected by WhiteKnightK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants