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
-
Command: bash Code Code Working Command: bash I tried to copy and paste many times but the first method always had problems |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Maybe you copy some whitespace with the private key, and that will make the private key incorrect. |
Beta Was this translation helpful? Give feedback.
-
Actually this error was faced by me and the solution to this error is: |
Beta Was this translation helpful? Give feedback.
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!