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)

1 Answer 1

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

1
  • 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, 2016 at 14:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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