I try to send Token based on Erc20.
and I can send Ether and something function but i dont know how to use transfer function in javascript like that.
function transfer(address _to, uint256 _value) public returns (bool success) {
_transfer(msg.sender, _to, _value);
return true;
}
i did first.
const TokenInstance = new web3.eth.Contract(mhToken.abi, '0xC632ecfBBcee37b8061E59fcA11d9cB80DE08612')
this.setState({ web3: web3 , MhTokenInstance:MhTokenInstance})
second.
using web3 instance i want to send custom token. plz help me how to use transfer function!