Web3.js: web3.eth undefined

Created on 10 Mar 2018  路  2Comments  路  Source: ChainSafe/web3.js

var web3 = require('web3');
when I say web3.eth or web3.Eth it says undefined.
Why is that so ?

Most helpful comment

Could you please open an issue that would make more sense?

You write "when I say web3.eth" ... are you talking to your computer?
Could you actually paste your code and explain what you were intending to do, in which context and which platform?

If you open such a fuzzy issue, how do you expect any good willing person to ever be able to help you?

All 2 comments

Could you please open an issue that would make more sense?

You write "when I say web3.eth" ... are you talking to your computer?
Could you actually paste your code and explain what you were intending to do, in which context and which platform?

If you open such a fuzzy issue, how do you expect any good willing person to ever be able to help you?

got it fixed.
Instance of web3 was not created. So it said undefined wherever I used it.

Was this page helpful?
0 / 5 - 0 ratings