0

I want to know if it is possible to build an app that can send alerts to others on ethereum blockchain.

If it's possible then how fast do you think the alerts can be sent and then received by the recipients?

Behroz
  • 101
  • 2

2 Answers2

1

There's the option to use a smart contract with events. It will allow everyone who follows your contract address to receive these events.

contract Tweet{
   event Msg (string msg);

   function makeTweet(string _msg) public {
      Msg (_msg);
   }  
}

Pay attention, people will have to manually add your smart contract to their clients in order to receive these message.

enter image description here

shultz
  • 1,091
  • 2
  • 13
  • 20
  • Can you explain what to write in the JSON interface in this case? – Behroz Jan 23 '18 at 07:38
  • You'll need to have a copy of the contract ABI. https://ethereum.stackexchange.com/questions/234/what-is-an-abi-and-why-is-it-needed-to-interact-with-contracts – shultz Jan 23 '18 at 07:53
0

No it's not, or the others will have to check manually the contract (or have an app that does it for them)

Itération 122442
  • 2,052
  • 1
  • 12
  • 33