While deploying contract to ropsten tesnet (truffle migrate --network ropsten) I am getting an error:

insufficient funds for gas * price + value

  ropsten: {
      network_id: 3,
      host: "localhost",
      port:  8545,
      gas:   4698712,
      gasPrice:   65000000000,
      from: '14e6b19304fb3c98a73acea5f80d2c056ee5c09f'


The configuration in truffle.js is given above. I have 1 test ether in my wallet account. How can I fix this issue ?


For me this error has always meant that I have not been fully synced. I have thought that all is fine but when I've checked my account locally I've noticed that I have no balance.

So make sure you are all synced up. Your configuration looks ok.

| improve this answer | |
  • Yeah. eth.syncing returns { currentBlock: 1820272, highestBlock: 3707312, knownStates: 3511302, pulledStates: 3509154, startingBlock: 538105 } How much time does it take to get completely synced. ? – Vivek Sadh Jul 25 '18 at 9:03
  • Depends largely on your setup. Might takes days or even a week. Or you can use a light node and get synced in a few minutes. If you have further questions about the sync process please ask a new question or check numerous other sync questions in this site – Lauri Peltonen Jul 25 '18 at 9:11
  • I am also facing same issue – Mujtaba Roshan Dec 6 '18 at 9:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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