danfinlay / human-standard-token-abi

A JSON ABI for the Ethereum ERC 20 Token Standard
95 stars 20 forks source link

gas and gasPrice #1

Open gfdac opened 6 years ago

gfdac commented 6 years ago

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)......

onetom commented 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){ ... });
07502746869 commented 5 years ago

Reshwanraza22@gmail.com