I am trying to to a transfer from my personal wallet into my coinbase wallet so I can convert to USD. I have been looking at many examples of how do a transfer with geth between two accounts, but no matter what I try I get one of two errors.
If I do not include gas/gasPrice I get...
Error: exceeds block gas limit
I looked up the current gasLimit eth.getBlock("latest").gasLimit and got 5000.
So I went to
http://ethgasstation.info/calculator.php and saw 40 gwei is the fastest execution. So in Geth I try this...
web3.eth.sendTransaction({from: 'myWallet', to: 'coinbaseWallet', value: web3.toWei(0.1,'ether'),gas: 5000, gasPrice: web3.toWei(40,'gwei')});
And I get the error: insufficient funds for gas * price + value
I have .2 in my account right now, and no matter how low I set the ether value, I still get the insufficient funds error.
Anyone know what I'm doing wrong?
Thanks
Comments
//web3.toWei(0.1, 'ether'); var ethVal = 100000000000000000; var gasVal = 5000; //web3.toWei(40, 'gwei') var gasPrice = 40000000000; var ethHex = '0x' + ethVal.toString(16); var gasHex = '0x' + gasVal.toString(16); var gpHex = '0x' + gasPrice.toString(16); web3.eth.sendTransaction({from: 'myWallet', to: 'coinbaseWallet', value: '0x016345785d8a0000', gas: '0x1388', gasPrice: '0x09502f9000'});
I still get the insufficient funds error
Do any of these apply to you?
ethsend 0.1 0x362c89a6d8a1597ff41eb03e1E897d0d95827C54 1.355 .geth.conf is a small config file that contains the location of the .ethereun directory and looks like this