this will send from your (synced!) main geth account to anotheraddress.
21 Shannon or 21 gwei will do right now.
somehow getbalance transaction never worked for me.
Ok, thank you for your answer!, but if I put my total wallet amount instead of 1, I get the same error...
eth.getBalance(eth.coinbase) runs perfectly in my server, but I get the same error...
I tried also this:
eth.sendTransaction({from: eth.coinbase, to: "destAdrress", value: eth.getBalance(eth.coinbase)-(22000*web3.toWei(21,"Shannon")) , gas:22000 , gasPrice:web3.toWei(21,"Shannon")})
And then, the same error...
"Insufficient funds for gas * price + value"
and web3.toWei(21,"Shannon") runs fine, I get:
"21000000000"
and eth.getBalance(eth.coinbase) runs perfectly to me!
No serious problem about this because at the end of the day I can transfer the whole number without decimals , but I would like to know how I can transfer all my wallet.
Another idea?