question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to debug "Insufficient funds" - cannot tell what required funds are?

See original GitHub issue
  • I’ve asked for help in the Truffle Gitter before filing this issue.

Wrote a simple contract. Attempting to deploy to testnet and get error.

eth --testnet --fast --rpc --rpcapi eth,net,web3,personal

truffle.js config:

module.exports = {
  // See <http://truffleframework.com/docs/advanced/configuration>
  networks: {
    development: {
      host: "127.0.0.1",
      port: 8545,
      network_id: "*" // Match any network id
    },
    ropsten: {
      network_id: 3,
      host: "127.0.0.1",
      port: 8545,
      from: "0xd060fa165f3ff5f506c5391aa07bc57599d053c7",
      gas: 4000000
    }
  }
};

then cd into my directory, truffle migrate --network ropsten

Running migration: 1_initial_migration.js
  Deploying Migrations...
  ... undefined
Error encountered, bailing. Network state unknown. Review successful transactions manually.
Error: insufficient funds for gas * price + value

How do I debug what the delta between my funds & required funds for deployment is?

Why is “network status unknown” showing?

  • Operating System:
  • Truffle version: v4.0.04
  • Ethereum client: ??
  • node version: 8.9.1
  • npm version: 5.6.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
elie222commented, Feb 9, 2018

I just banged my head against this issue with Rinkeby. I had to remove gas and gasPrice from the truffle config file to make it work.

1reaction
cgeweckecommented, Jan 29, 2018

@quantumproducer It prints a table at the end of the tests, as part of the test output.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix "insufficient funds" error or greyed-out confirm button
You can remedy this by sending some of the necessary native token to that account in order to be able to make the...
Read more >
debug_traceTransaction returns "insufficient balance to pay ...
The account which signs the transaction ( the "from" field ) has zero (or very low) balance. This balance is so small that...
Read more >
Cannot send due to Insufficient funds · Gas & Transaction Fees
The number displayed in that error message is the amount required to cover the cost of the transaction in Wei. Take that number,...
Read more >
Deployment to Ethereum Ropsten test net fails - Stack Overflow
Error: insufficient funds for intrinsic transaction cost ... How can I find out how much Ethereum I would need ?
Read more >
Why does Metamask say insufficient funds? How to fix ... - BitKan
How to fix that error? You can work around this by sending the account some necessary native tokens to be able to make...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found