Web3.js: Update shh methods to whisper v5

Created on 11 May 2017  路  5Comments  路  Source: ChainSafe/web3.js

After the release of geth 1.6.1 some of the rpc methods were removed from the shh module, one example would be shh_newIdentity which throws an error right now Error: The method shh_newIdentity does not exist/is not available

Most helpful comment

Looks like the updated methods are currently available in the develop branch.

All 5 comments

The new release has switched from Whisper v.2 to Whisper v.5.
Method newIdentity was changed. It was renamed to "subscribe" and params are changed.
More info here: https://github.com/ethereum/go-ethereum/wiki/Whisper

Does anyone be working on it now?
I think that we should change methods of web3.js's shh object.

Looks like the updated methods are currently available in the develop branch.

The latest whisper API should be implemented in web3 1.0.0-beta.

check shh options of geth
geth --shh --rpc --rpcapi web3,eth,net,shh

Was this page helpful?
0 / 5 - 0 ratings