6

Is it possible? And if it is, how can I send some data from contract to address.
Something like

msg.sender.send.data("0x0")(value)
5

There is something specifically for this purpose, which is called Whisper

In a nutshell whisper is a communication protocol for DApps to communicate each other.

Example Usage

var shh = web3.shh;
var appName = "My silly app!";
var myName = "Gav Would";
var myIdentity = shh.newIdentity();

shh.post({
  "from": myIdentity,
  "topic": [ web3.fromAscii(appName) ],
  "payload": [ web3.fromAscii(myName), web3.fromAscii("What is your name?") ],
  "ttl": 100,
  "priority": 1000
});

Read Whisper Overview

  • Yes, i've read about it. But can i use this wonderfull protocol from contract, and will it be like internal transaction or what? Can i catch it from, for example, etherscan, like internal transaction. – mrAkax May 7 '16 at 14:53

Your Answer

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

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