Ejemplo n.º 1
0
        /// <inheritdoc />
        public async Task <bool> StartHistoryObservationOfIncomingTransactionsAsync(string address)
        {
            ValidateAddressIsNotEmpty(address);

            try
            {
                await _runner.RunWithRetriesAsync(() => _api.StartHistoryObservationOfIncomingTransactionsAsync(address));
            }
            catch (ErrorResponseException ex) when(ex.StatusCode == HttpStatusCode.Conflict)
            {
                return(false);
            }

            return(true);
        }