16

Sending Address has over 1 Eth in current Balance.

Using the Geth console, I can send many transactions of any amount less than .033

eth.sendTransaction({to:'0x8B9da75fda99bAd680154050Ba386523CA3AD112', 
from:'0x62396567241bC92Ee3D082AC3C4144511Ec6c773',
value:web3.toWei(.033,'ether'),gas:30000})

"0x113dd5b9c8bb6d48fe2b3ef16576905f6e46aa4ed6cd080120a2aaf54113e7b4"

If I try to send .034 ETH or greater, then I always get this error.

eth.sendTransaction({to:'0x8B9da75fda99bAd680154050Ba386523CA3AD112',
from:'0x62396567241bC92Ee3D082AC3C4144511Ec6c773',value:web3.toWei(.034
,'ether'),gas:30000}) Insufficient funds for gas * price + value
at web3.js:3119:20
at web3.js:6023:15
at web3.js:4995:36
at :1:1

  • are you using that in a private chain or in the public one? – Badr Bellaj Oct 5 '16 at 17:26
  • default geth setup on public chain. Here is .sh #!/usr/bin/env bash echo "Starting geth" screen -dmS geth /usr/bin/geth --rpc --rpcapi="db,eth,net,web3,personal,web3" --verbosity 3 – John Heeter Oct 5 '16 at 17:27
  • what is the balance of 0x62396567241bC92Ee3D082AC3C4144511Ec6c773 – Badr Bellaj Oct 5 '16 at 17:29
  • 0.7 ETH and I had 1.5 ETH in the account with the same problem. I can send many small transactions, but nothing larger than .33 – John Heeter Oct 5 '16 at 17:34
  • yeah me too , private chain ;networkId 1108; seems all right, when i invoke a contract ,then error – leung yves Aug 7 at 6:59
11

It seems to be a bug in geth, try the solution presented here : https://github.com/ethereum/go-ethereum/issues/2173

they assume that the solution is :

Convert all values to hex (with bc if you use bash)

Make sure to specify both gas and gasPrice! Enclose all values in single quotes eth.sendTransaction({from:'0x123456', to:'0x123456', value: '0x8AC4270ACC4B7FF7', gas: '0x5208', gasPrice: '0x4A817C800'});"

  • 1
    Thanks for the suggestion. I was able to solve my issue by upgrading geth to: Geth/v1.4.16-stable/linux/go1.6.2 – John Heeter Oct 7 '16 at 1:09
  • 1
    hex value fixed my issue – Vladimir Kovalchuk Aug 4 at 15:15
4

I was able to solve my issue by upgrading geth to: Geth/v1.4.16-stable/linux/go1.6.2

  • 1
    This error is common if you don't have enough eth in your account, if your node isn't in sync with the network, or if you don't specify a gas price or something else is slightly wrong with the command. In this case, I'm guessing it was the attacks on the network causing your node not to be 100% in line with reality or timing out or something similar, which is why upgrading fixed it. – tayvano Oct 7 '16 at 5:16
  • After upgrading I was able to send 40 valid transactions. But after I sent the transactions I found that my node was stuck on one block for 30 minutes. I then stopped Geth and ran the geth upgradedb command. Waiting for this command to finish. Hopefully everything will be resolved now. – John Heeter Oct 7 '16 at 7:16
  • I should manually specify gas price? – John Heeter Oct 7 '16 at 7:17
  • I would recommend it. Usually I do 21000000000 but I've been using 25000000000 lately. Not sure if it actually makes a difference. – tayvano Oct 7 '16 at 10:26
  • Also had this issue when accidentally upgraded t0 Geth/v1.5 beta – Mikko Ohtamaa Nov 13 '16 at 13:11
2

I wanted to add an important information:

gas * price + value really means MAXGas * price.

In my case transactions failed from time to time when gas price increased because gas limit was set too high! Even if you know that it won't be that expensive you should use a reasonable amount.

  • Thank you! This is exactly what if was in my case! – Nick Ivanov May 31 at 19:53
1

i solved this by reducing my gas

  • Where did you reduce the gas? – Ahmed Numaan Apr 3 at 8:10
1
gas:4.7M, gasPrice:101 GWei => error: insufficient funds.
gas:3.7M, gasPrice:101 GWei => it works ok.
gas:4.7M, gasPrice:100 GWei => error: insufficient funds.
gas:4.7M, gasPrice:90 GWei  => error: insufficient funds.
gas:4.7M, gasPrice:70 GWei  => it works ok.
gas:4.7M, gasPrice:80 GWei  => it works ok.
gas:4.7M, gasPrice:85 GWei  => error: insufficient funds.
gas:4.7M, gasPrice:82 GWei  => it works ok.
...
gas:1.0M, gasPrice:10 GWei  => it works ok.

So, there is a (variable?) limit for gas*gasPrice that throws the error. Using gas and prices lower and far from this limit is probably the safer approach.

1

In my private Ethereum Blockchain network, I resolved the issue by changing the chainId variable in my genesis block code to any random number except 0.

Please find the code for my genesis block below:

{
"config":{
        "chainId": 45,
        "homesteadBlock": 0,
        "eip155Block": 0,
        "eip158Block": 0,
        "byzantiumBlock": 12
    },
  "alloc"      : {},
  "coinbase"   : "0x0000000000000000000000000000000000000000",
  "difficulty" : "0x20000",
  "extraData"  : "",
  "gasLimit"   : "0x2fefd8",
  "nonce"      : "0x0000000000000042",
  "mixhash"    : "0x0000000000000000000000000000000000000000000000000000000000000000",
  "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
  "timestamp"  : "0x00"
}

I hope it might be helpful for you.

  • Does not work. It is already 2019 in my case. Still facing this issue. – Ahmed Numaan Apr 3 at 8:09

protected by Community Aug 11 at 11:55

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.