Lesson 8 : inpage.js:1 MetaMask - RPC Error: [ethjs-query] #2007
Answered
by
krakxn
ameeetgaikwad
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
krakxn
Aug 23, 2022
Replies: 1 comment 4 replies
-
Going by sheer memory here, but pretty sure the chainId is 1337 for Metamask specifically. EDIT: Found the problem (lies in ethAmount), use this instead: Note for the above: the ID in the html file should be ethAmount for the above to work, or whatever you see fit, but both the IDs should match |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
ameeetgaikwad
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Going by sheer memory here, but pretty sure the chainId is 1337 for Metamask specifically.
EDIT: Found the problem (lies in ethAmount), use this instead:
const ethAmount = document.getElementById("ethAmount").value
Note for the above: the ID in the html file should be ethAmount for the above to work, or whatever you see fit, but both the IDs should match