I am making a web3 project. Connected to the metamask wallet and got the address. Now, I want the user to send 1 USDT on the BEP.20 chain to my binance wallet, and I want to achieve that like this - a user clicks on the pay button, then metamask opens up and asks use to pay.
This is the code I use -
ethereum.request({
method: 'eth_sendTransaction',
params: [{
from: accounts[0], // Got account address before this.
to: '0x67243756d4144d6d3e132baa0660e0bc0cddf59b', // my binance wallet address
value: web3.utils.toWei('1', 'tether'), // How am I supposed make this 1 USDT?
}],
});
The value part is confusing me. I want only 1 USDT but that i am using right now is giving 100000..... and more zeros.