title: Send Tokens through RPC API (Metamask)
body: <p>I was doing a USDC transaction on the Ropsten network but in the <a href="https://docs.metamask.io/" rel="nofollow noreferrer">Metamask documentation</a> I didn't see any place where transactions with tokens were directly touched, I was trying some things I found without success. An example of what I found I took from <a href="https://stackoverflow.com/questions/70846974/how-to-send-some-custom-tokens-with-metamask-api">How to send some custom tokens with MetaMask API?</a></p>
  <pre class="lang-js prettyprint-override"><code>ethereum.request({
    method: &quot;eth_sendTransaction&quot;,
    params: [
      {
        from: ethereum.selectedAddress,
        to: &quot;0x07865c6E87B9F70255377e024ace6630C1Eaa37F&quot;,
        data: tokenContract.methods
          .transfer(&quot;My Wallet&quot;, &quot;0.0001&quot;)
          .encodeABI(),
      }
    ]
  });
  </code></pre>
  <p>The problem here is that tokenContract is not defined and I have no idea how to define it</p>
  <p>I also found VERY old and really obsolete answers, where mostly web3js is used (And MetaMask doesn't allow to work with web3js anymore as far as I understand, I've already tried it).</p>