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:
- Created 6 years ago
- Comments:12 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@quantumproducer It prints a table at the end of the tests, as part of the test output.