how to fix “insufficient funds for gas * price + value”?
windows 10 Home x64
bignumber.js@^7.2.1
openzeppelin-solidity@1.10.0
react@16.4.1
react-dom@16.4.1
truffle@4.1.13
web3@1.0.0-beta.34
Full version reference:
https://github.com/tooploox/ethereum-ico-examples/blob/master/package.json
I have done a lot of research. I found so many sources but none of them found a solution and some threads are not updated anymore or probably they already found an answer but did not post it. Some people manage to fix it in Mac, but I am using Windows. Some people fix it 5 months ago but when I tried it, it did not work out, buy changing the gas higher a little bit and run again. I also have 6 Ether in my Ropsten account.
This is my truffle.js:
ropsten:
provider: new HDWalletProvider(mnemonic, "https://ropsten.infura.io/"+infura_apikey),
network_id: 3,
gas: 4000000
,
when I truffle migrate --network ropsten:
it triggers this error:
Running migration: 1_initial-migration.js
Deploying Migrations...
Error encountered, bailing. Network state unknown. Review successful transactions manually.
insufficient funds for gas * price + value
Github reference:
https://github.com/tooploox/ethereum-ico-examples
Instruction Reference:
https://www.tooploox.com/blog/create-and-distribute-your-erc20-token-with-openzeppelin
ethereum solidity smartcontracts truffle erc20
add a comment |
windows 10 Home x64
bignumber.js@^7.2.1
openzeppelin-solidity@1.10.0
react@16.4.1
react-dom@16.4.1
truffle@4.1.13
web3@1.0.0-beta.34
Full version reference:
https://github.com/tooploox/ethereum-ico-examples/blob/master/package.json
I have done a lot of research. I found so many sources but none of them found a solution and some threads are not updated anymore or probably they already found an answer but did not post it. Some people manage to fix it in Mac, but I am using Windows. Some people fix it 5 months ago but when I tried it, it did not work out, buy changing the gas higher a little bit and run again. I also have 6 Ether in my Ropsten account.
This is my truffle.js:
ropsten:
provider: new HDWalletProvider(mnemonic, "https://ropsten.infura.io/"+infura_apikey),
network_id: 3,
gas: 4000000
,
when I truffle migrate --network ropsten:
it triggers this error:
Running migration: 1_initial-migration.js
Deploying Migrations...
Error encountered, bailing. Network state unknown. Review successful transactions manually.
insufficient funds for gas * price + value
Github reference:
https://github.com/tooploox/ethereum-ico-examples
Instruction Reference:
https://www.tooploox.com/blog/create-and-distribute-your-erc20-token-with-openzeppelin
ethereum solidity smartcontracts truffle erc20
Have you tried reducing the gas price?
– nikos fotiadis
Nov 15 '18 at 6:43
add a comment |
windows 10 Home x64
bignumber.js@^7.2.1
openzeppelin-solidity@1.10.0
react@16.4.1
react-dom@16.4.1
truffle@4.1.13
web3@1.0.0-beta.34
Full version reference:
https://github.com/tooploox/ethereum-ico-examples/blob/master/package.json
I have done a lot of research. I found so many sources but none of them found a solution and some threads are not updated anymore or probably they already found an answer but did not post it. Some people manage to fix it in Mac, but I am using Windows. Some people fix it 5 months ago but when I tried it, it did not work out, buy changing the gas higher a little bit and run again. I also have 6 Ether in my Ropsten account.
This is my truffle.js:
ropsten:
provider: new HDWalletProvider(mnemonic, "https://ropsten.infura.io/"+infura_apikey),
network_id: 3,
gas: 4000000
,
when I truffle migrate --network ropsten:
it triggers this error:
Running migration: 1_initial-migration.js
Deploying Migrations...
Error encountered, bailing. Network state unknown. Review successful transactions manually.
insufficient funds for gas * price + value
Github reference:
https://github.com/tooploox/ethereum-ico-examples
Instruction Reference:
https://www.tooploox.com/blog/create-and-distribute-your-erc20-token-with-openzeppelin
ethereum solidity smartcontracts truffle erc20
windows 10 Home x64
bignumber.js@^7.2.1
openzeppelin-solidity@1.10.0
react@16.4.1
react-dom@16.4.1
truffle@4.1.13
web3@1.0.0-beta.34
Full version reference:
https://github.com/tooploox/ethereum-ico-examples/blob/master/package.json
I have done a lot of research. I found so many sources but none of them found a solution and some threads are not updated anymore or probably they already found an answer but did not post it. Some people manage to fix it in Mac, but I am using Windows. Some people fix it 5 months ago but when I tried it, it did not work out, buy changing the gas higher a little bit and run again. I also have 6 Ether in my Ropsten account.
This is my truffle.js:
ropsten:
provider: new HDWalletProvider(mnemonic, "https://ropsten.infura.io/"+infura_apikey),
network_id: 3,
gas: 4000000
,
when I truffle migrate --network ropsten:
it triggers this error:
Running migration: 1_initial-migration.js
Deploying Migrations...
Error encountered, bailing. Network state unknown. Review successful transactions manually.
insufficient funds for gas * price + value
Github reference:
https://github.com/tooploox/ethereum-ico-examples
Instruction Reference:
https://www.tooploox.com/blog/create-and-distribute-your-erc20-token-with-openzeppelin
ethereum solidity smartcontracts truffle erc20
ethereum solidity smartcontracts truffle erc20
asked Nov 15 '18 at 5:13
user9460187
Have you tried reducing the gas price?
– nikos fotiadis
Nov 15 '18 at 6:43
add a comment |
Have you tried reducing the gas price?
– nikos fotiadis
Nov 15 '18 at 6:43
Have you tried reducing the gas price?
– nikos fotiadis
Nov 15 '18 at 6:43
Have you tried reducing the gas price?
– nikos fotiadis
Nov 15 '18 at 6:43
add a comment |
1 Answer
1
active
oldest
votes
Try setting gas price in truffle.js file.
gasPrice: 10000000000 // Something price like this
Source
Hope this helps!
thank you! it really works and leads to another problem
– user9460187
Nov 15 '18 at 13:19
This is the follow up question, you might wanna check thanks! stackoverflow.com/questions/53320530/…
– user9460187
Nov 15 '18 at 13:26
add a comment |
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53312840%2fhow-to-fix-insufficient-funds-for-gas-price-value%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try setting gas price in truffle.js file.
gasPrice: 10000000000 // Something price like this
Source
Hope this helps!
thank you! it really works and leads to another problem
– user9460187
Nov 15 '18 at 13:19
This is the follow up question, you might wanna check thanks! stackoverflow.com/questions/53320530/…
– user9460187
Nov 15 '18 at 13:26
add a comment |
Try setting gas price in truffle.js file.
gasPrice: 10000000000 // Something price like this
Source
Hope this helps!
thank you! it really works and leads to another problem
– user9460187
Nov 15 '18 at 13:19
This is the follow up question, you might wanna check thanks! stackoverflow.com/questions/53320530/…
– user9460187
Nov 15 '18 at 13:26
add a comment |
Try setting gas price in truffle.js file.
gasPrice: 10000000000 // Something price like this
Source
Hope this helps!
Try setting gas price in truffle.js file.
gasPrice: 10000000000 // Something price like this
Source
Hope this helps!
answered Nov 15 '18 at 9:55
HarshHarsh
265
265
thank you! it really works and leads to another problem
– user9460187
Nov 15 '18 at 13:19
This is the follow up question, you might wanna check thanks! stackoverflow.com/questions/53320530/…
– user9460187
Nov 15 '18 at 13:26
add a comment |
thank you! it really works and leads to another problem
– user9460187
Nov 15 '18 at 13:19
This is the follow up question, you might wanna check thanks! stackoverflow.com/questions/53320530/…
– user9460187
Nov 15 '18 at 13:26
thank you! it really works and leads to another problem
– user9460187
Nov 15 '18 at 13:19
thank you! it really works and leads to another problem
– user9460187
Nov 15 '18 at 13:19
This is the follow up question, you might wanna check thanks! stackoverflow.com/questions/53320530/…
– user9460187
Nov 15 '18 at 13:26
This is the follow up question, you might wanna check thanks! stackoverflow.com/questions/53320530/…
– user9460187
Nov 15 '18 at 13:26
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53312840%2fhow-to-fix-insufficient-funds-for-gas-price-value%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown

Have you tried reducing the gas price?
– nikos fotiadis
Nov 15 '18 at 6:43