Syntax Errors When Using Command Line Tools

PaleusPaleus Member Posts: 7
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.

Comments

  • VonateabieVonateabie Member Posts: 1
    I'm encountering a similar issue pretty early in setting up an my account. When I write
    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!
Sign In or Register to comment.