Web3 partially not working?

ytriusytrius Member Posts: 26
I'm testing web3 library, with a local geth node running as the following: "./geth --rpc --rpccorsdomain 'mydomain.net' "

I'm connecting to the geth node via the following javascript:

var Web3 = require('web3');
var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));

Here are results of some other commands:

web3.isConnected() : "true"

web3.net.isListening : "true"

web3.version.node : "Geth/v1.4.8-stable-98be7cd8/linux/go1.6.2"

web3.version.api : "0.16.0"

web3.version.network : "1"

web3.version.ethereum : "0x3f"

web3.net.peerCount : "13"

web3.eth.syncing : "[object Object]"

web3.eth.gasPrice : "20000000000"

web3.eth.blockNumber : "824397"

web3.eth.getBalance("0x603e745e654569a99f6356cfaa2c44949c02cf7c") : "0" // <-- this address has >0 eth, verifiable via etherscan, for example

and finally an attempt to get "The DAO" code:

web3.eth.getCode("0xbb9bc244d798123fde783fcc1c72d3bb8c189413") : "0x"

Some of the results seem off, such as version.network, version.ethereum, and blockNumber, and getCode and getBalance are clearly not working. Any help is appreciated! I'll post more info if it's needed, thanks.
Sign In or Register to comment.