I've often moved ETH around using geth using simple sendTransaction
, with say 21 000 gas or 30 000 gas and never had any issue.
For example the following basically always worked for me (there's 30 K gas):
eth.sendTransaction({from:eth.accounts[0],to:"0x....",value:web3.toWei(50,"ether"),gas:30000})
However today I participated in an ICO that stated two things which I find extremely confusing:
"We’ve spent a lot of time perfecting the TKN smart contracts and you are only required to send your ETH or token contribution. No further action or ABI is needed."
"Set the gas limit at 200,000"
I take it I've got only one question, but which can be formulated differently, so here we go..
If all I'm required to do is sent tokens to an address, why then is a 200 K gas limit needed?
Can the same sendTransaction
call that is I'm using to move ETH between simple address be used to sent from a simple address to a smart contract?
Doesn't a sendTransaction
to a smart contract's address just raise the balance of that address? What additional code is executed that is not executed in the case of a sendTransaction
to a non-smart-contract address?