public IRpcMethodResult AddWatchOnlyAddress(string publickey) { try { AccountComponent component = new AccountComponent(); Account result = component.GenerateWatchOnlyAddress(publickey); return(Ok(result)); } catch (CommonException ce) { return(Error(ce.ErrorCode, ce.Message, ce)); } catch (Exception ex) { return(Error(ErrorCode.UNKNOWN_ERROR, ex.Message, ex)); } }