add notifyTransaction method.