Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Whisper chat demo

Compile geth from

Setup private network: genesis file:

geth --datadir /tmp/whisper init

Get chat.js from

Start node:

geth --datadir /tmp/whisper --shh --preload </path/to/downloaded/chat.js> console 2>/dev/null

Add peer: admin.addPeer("enode://3b48b9200bd964fee986358edf721de0c322339b36a73016e9af4de9e3b5d6da090807596b9dfb52ee35056005211c51f3744d728edf06c4c6567a309d29c967@[]:30303")

Set username (optional):


Join chat box:


Say something:

chat.say("my message")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.