0

For example, I set a tParam as

value: web3.utils.toWei('0.01','ether'),

...

const txHash = await window.ethereum.request({
      method: "eth_sendTransaction",
      params: [tParam],
    });

It should show 0.01 ETH in Metamask, but showing 1.xx.

Where can be the problem point?

0

Found out that the value should be string hex.

Your Answer

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

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