Submit transaction specifying different asset

Hello everybody,

I wanted information about the API.
In practice I can do all the login steps through the API, but I can’t specify the asset when sending the transaction, that is, I make this request:

await ethereum
              .request({
                method: 'eth_sendTransaction',
                params: [
                  {
                    from: this.idAccountMetaMask,
                    to: this.receiverMetamask,
                    value: this.value,
                    asset: 'doge',
                  },
                ],
              })

but I always select the main BNB network but I cannot specify doge coin for example that it is an asset present on my metamask account.
Where am I doing wrong?

Thank you

Hey @Viro, welcome to the MetaMask community! :fox_face:

This page on our MetaMask docs may help you:

For this specific example, Dogecoin would not work on BNB network because Dogecoin is on it’s on blockchain that is not a part of BNB network.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.