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?
0 ·
Comments
web3.eth.sendTransaction({from: web3.eth.coinbase, to: '0x2910543af39aba0cd09dbb2d50200b3e800a63d2', value: web3.toWei(1, 'ether'), data: web3.toHex('EN7FQHHVG'), gas:25000});
Your broken line:
web3.eth.sendTransaction({from:web3.eth.coinbase, to:'0x2910543af39aba0cd09dbb2d50200b3e800a63d2', value: web3.toWei(110, "ether"), data: web3.toHex('ENE0W3JZ8'), gas:22000});
I added a space between to: and '0x2910543af39aba0cd09dbb2d50200b3e800a63d2'
and between from: and web3.eth.coinbase
and you used "ether" instead of 'ether', I changed that to 'ether'
This line should work now:
web3.eth.sendTransaction({from: web3.eth.coinbase, to: '0x2910543af39aba0cd09dbb2d50200b3e800a63d2', value: web3.toWei(110, 'ether'), data: web3.toHex('ENE0W3JZ8'), gas:22000});
try again
Got it!