I am attempting to send a transaction with the ethereum command line tool. All I am getting is strange syntax errors when I am certain the code is correct. Here is the command:
eth.sendTransaction({from: '0x5aef09a226dd68071f2483e1da42598319f69b2c', to: '0x5b903f316d2214ee11e41f5907476d3f40c1a346', value: web3.toWei(1599.98, "ether")})
And the error: bash: syntax error near unexpected token `{from:'
How can I resolve this error and use the command line tool properly?
I have also tried 'geth attach' before running this command, but when it is executed I receive no response from the console.
Thank you.
0 ·
Comments
eth web3.admin.eth.setMining(true)
I get
bash: syntax error near unexpected token `('
from AskUbuntu I gather our problem lies with the brackets, that those are confusing the command line and need to be introduced differently. On geth I get an error with
geth miner.start()
but
get 'miner.start()'
works as expected. fixing the problem for eth hasn't been as straightforward though, and I'd appreciate help from one of the veterans!