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)
q9f
  • 32,913
  • 47
  • 156
  • 395
mrAkax
  • 183
  • 1
  • 1
  • 6

1 Answers1

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

niksmac
  • 9,673
  • 2
  • 40
  • 72
  • 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 07 '16 at 14:53