Let's say I have an event notify() in a function called buy().
event notify();
buy(){
//...
notify();
}
Problem here is that my the notify watch handle is triggered only after that transaction is mined. Is this how events work? If so, is there alternative to know the transactions happening in my contract instantly? var filter = contractObject.notify();
filter.watch(function (error, log, data)
{ console.log(data); });