Open gfdac opened 6 years ago
@pandabr sorry, your question is off-topic.
Whatever you used to create the wtoken
variable is where you should look for documentation.
You most likely use web3.js, so for the upcoming 1.x version you should look here:
https://web3js.readthedocs.io/en/1.0/web3-eth-contract.html#methods-mymethod-send
or for the current stable 0.20.x version, look here:
https://github.com/ethereum/wiki/wiki/JavaScript-API#contract-methods
eg:
myContractInstance.myStateChangingMethod('someParam1', 23, {value: 200, gas: 2000}, function(err, result){ ... });
Reshwanraza22@gmail.com
Hello, thanks for help me.. i im using you code to send tokens, how i set the gas and gasPrice? thanks for all.
wtoken.transfer(toAddress, value, { from: fromAccount }, function (err, txHash)......