2

I've installed the mist wallet, connected the rinkebytestnet and transferred 3ETH to myself from the faucet

enter image description here

web3 is defined like so

if (typeof web3 !== 'undefined') {
    web3 = new Web3(web3.currentProvider);
} else {
    // set the provider you want from Web3.providers
    web3 = new Web3(new Web3.providers.HttpProvider("http://127.0.0.1:8545"));
}

setup a meteor app and trying to show the balance using web3

  var my_test_address = "0x269999b8dC883628ed7EE7aaAdD498e50C164905";
  web3.eth.getBalance(my_test_address, 'latest',
    function (err, res){
      console.log('err');
      console.log(err);
      alert(res)
    }
    )

the alert shows 0

any ideas ?

1

Forgot to mention that I was counting on metamask chrome extension to inject the web3 object to my project.

solved it by simply changing the network there

enter image description here

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.