Updated to use event emitters instead of callbacks, hitting the REST transaction endpoint