0

I have a recurring problem with web3. I follow the instructions on this page: https://github.com/paritytech/parity/wiki/Basic-Usage

Where it says "Node.js CLI Console" and instead of getting the expected results, this is the end of what I see:

     { [Function: send]
        method: [Object],
        request: [Function: bound ],
        call: 'shh_getSymKey' },
     deleteSymKey: 
      { [Function: send]
        method: [Object],
        request: [Function: bound ],
        call: 'shh_deleteSymKey' },
     newMessageFilter: 
      { [Function: send]
        method: [Object],
        request: [Function: bound ],
        call: 'shh_newMessageFilter' },
     getFilterMessages: 
      { [Function: send]
        method: [Object],
        request: [Function: bound ],
        call: 'shh_getFilterMessages' },
     deleteMessageFilter: 
      { [Function: send]
        method: [Object],
        request: [Function: bound ],
        call: 'shh_deleteMessageFilter' },
     post: 
      { [Function: send]
        method: [Object],
        request: [Function: bound ],
        call: 'shh_post' } },
  bzz: 
   Bzz {
     givenProvider: null,
     currentProvider: null,
     isAvailable: [Function],
     upload: [Function],
     download: [Function] } }
> web3.eth.blockNumber
undefined
> 

Does anyone recognize this and if so what could I be missing? I have tried installing web3 globally as root too but the result is the same.

2
  • I think the problem is with the version of web3. Try npm install [email protected] to force the stable version, instead of the v1.0 beta that is installed by default.
    – Ismael
    Commented Dec 2, 2017 at 22:14
  • Yes that worked! If you make this an answer I will mark it correct.
    – stone.212
    Commented Dec 3, 2017 at 3:08

1 Answer 1

2

The problem was the version of web3 installed by default is v1.0 beta is not compatible with the wiki pages.

Try npm install [email protected] to force the installation of the stable version.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.