Watching Events

dave123124dave123124 Member Posts: 11
edited August 2015 in Smart Contracts and Dapps
I have some Events setup in my solidity contract.

And I am watching them using:

myContract.MyEventName().watch(function(error, result){
However the problem is that when you initially load the javascript it is outputting every Event that has ever occurred. I only want to receive notice of Events that occur after the watch is loaded.

So start watching and receive a notice every time MyEventName() event is triggered after that. Without receiving X number of notices for every time that MyEventName() has ever been run before.


Sign In or Register to comment.