0

I have follow following answer and I can send 1-N whisper message. Now, I want to send peer-to-peer message using shh.post().

On shh.post documentations, it is recommended to use targetPeer for peer-to-peer message.

targetPeer - String (optional): Optional peer ID (for peer-to-peer message only).

But using targetPeer assigned as admin.nodeInfo.id or admin.nodeInfo.enode of the receiver node; I was not able to send peer-to-peer message.

=> What is targetPeer (peer ID) stands for? Is targetPeer (peer ID) stands for admin.nodeInfo.id or admin.nodeInfo.enode or something else?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.