Keep getting syntax error when trying to send ETH

roelbuerraroelbuerra Posts: 2Member
edited August 2015 in web3-js
Hi,

I want to send 110ETH to Kraken.

Using Geth on a Macbook

But keep getting:
-bash: syntax error near unexpected token `{from:'



I tried these commands:

web3.eth.sendTransaction({from:web3.eth.coinbase, to:'0x2910543af39aba0cd09dbb2d50200b3e800a63d2', value: web3.toWei(110, "ether"), data: web3.toHex('ENE0W3JZ8'), gas:22000});

eth.sendTransaction(from: web3.eth.coinbase, to:'0x2910543af39aba0cd09dbb2d50200b3e800a63d2', value: web3.toWei(110, "ether"), data: web3.toHex('ENE0W3JZ8'), gas:21000, gasPrice:web3.toWei(300, 'gwei')})

eth.sendTransaction({from: eth.coinbase, to: '0x2910543af39aba0cd09dbb2d50200b3e800a63d2', value: web3.toWei(110, 'ether'), data: web3.toHex('ENE0W3JZ8')});

web3.eth.sendTransaction({from: web3.eth.coinbase, to: '0x2910543af39aba0cd09dbb2d50200b3e800a63d2', value: web3.toWei(110, 'ether'), data: web3.toHex('ENE0W3JZ8'), gas:23000});

Can someone help me?

Comments

Sign In or Register to comment.