I am trying to deploy contract on ropston testnet. I have created an account through truffle console and got three test ethers from https://faucet.bitfwd.xyz/. I have confirmed that my account has three ethers from this https://ropsten.etherscan.io/. But when I check balance from truffle console it always says zero. Although my node is synced.

web3.eth.getBalance('0x06ac473de96986b20b37f13ca311d07c0875e49b') BigNumber { s: 1, e: 0, c: [ 0 ] } here is screenshot of https://ropsten.etherscan.io/ which clearly shows it has three ethers.

enter image description here

When I do truffle migrate I get following error. enter image description here

Please help my finding where mistakes occur. Thanks in advance :)


Here is my truffle.js

module.exports = { networks: { development: { host: '', port: 8545, network_id: '*', gas: 470000 } }


Are you sure truffle migrate tries to migrate to ropsten ( with an e) ? It says "using network development" in your screenshot. You should have ropsten declared as a network in your truffle.js.

So: Please check wether you a) are checking your balance on ropsten via truffle console, and b) wether you are actually trying to migrate to ropsten.

Edit: I added Ropsten like this into my truffle.js :

ropsten:  {
     network_id: 3,
     host: "localhost",
     port:  8545,
     gas:   450000

Then migrate via truffle migrate --network ropsten

Regarding the balance, please check Why the balance that I see in the Ropsten isn't reflected in Truffle console? and make sure you really are in sync.

  • i have added truffle.js in edit. please have a look at question again – Shoaib Iqbal Feb 14 '18 at 12:08
  • my rpc localhost server is running on portno. 8545 – Shoaib Iqbal Feb 14 '18 at 12:15

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.