Before starting work, geth was installed from the official site. Run geth with the following parameters

--shh --testnet --rpcapi "db,eth,net,web3,shh,personal" 

Synchronization of blocks in the test environment begins. Before the start of the blocks have already been synchronized. After that, run geth with the attach parameter to work with the JavaScript-API. I take the commands from the next resource . The problem occurs when I run the following command:

 var identity = web3.shh.newIdentity(); 

In response to what I get, the following error:

 Error: The method shh_newIdentity does not exist/is not available at web3.js:3104:20 at web3.js:6191:15 at web3.js:5004:36 at <anonymous>:1:1 

Checked version of whisper, when checking via JS API, version 5 was issued. In theory, in this version, this function should work and issue the corresponding id for further work. At what point did you make a mistake and how can you fix it? Maybe someone has already tried to start work through whisper, I will be very grateful if you tell me how it was possible to successfully send a message.

    1 answer 1

    Mistake. Just for version 5, this method no longer works. Whisper-Usage , using the shh.newKeyPair() method