title: (MetaMask - Javascript) Problem with value format for sendTransaction
body: <p>I have a problem with the transaction in MetaMask about the value format, I put the code below:</p>
  <pre><code>&lt;script type=&quot;text/javascript&quot;&gt;
  
      const sendEthButton = document.querySelector('.sendEthButton');
  
      sendEthButton.addEventListener('click', () =&gt; {
        ethereum
          .request({
            method: 'eth_sendTransaction',
            params: [
              {
                from: ethereum.selectedAddress,
                to: '{{contractCreator}}',
                value: '0x29a2241af62c0000',
              },
            ],
          })
          .then((txHash) =&gt; console.log(txHash))
          .catch((error) =&gt; console.error);
      });
  
  &lt;/script&gt;
  </code></pre>
  <p>I have connected MetaMask correctly to the site and Ganache and also the transaction appears in the plugin when I press the button in my page, but only with this value in the code I see the correct one (3) but I don't know how is the formatting...</p>
  <p>I have tried web3.toWei(number, 'ether') and web3.toHex(number) but it shows me strange values...</p>
  <p>For example if I replace this value with web3.toWei(1, ether) it shows 4722.366483 in the MetaMask windows...</p>
  <p>I have found this value searching the web but I can't find the solution to this problem, thanks to everyone!</p>