public async static Task <ArkTransactionList> GetUnconfirmedTransactionsAsync(ArkUnconfirmedTransactionRequest req) { var response = await NetworkApi.Instance.ActivePeer.MakeRequest(ArkStaticStrings.ArkHttpMethods.GET, string.Format(ArkStaticStrings.ArkApiPaths.Transaction.GET_ALL_UNCONFIRMED + "{0}", req.ToQuery())); return(JsonConvert.DeserializeObject <ArkTransactionList>(response)); }
/// <summary> /// Asynchronously gets unconfirmed transactions by range. /// </summary> /// /// <param name="req">The range paramters.</param> /// /// <returns>Returns an <see cref="Task{ArkTransactionList}"/> type.</returns> /// public async Task <ArkTransactionList> GetUnconfirmedTransactionsAsync(ArkUnconfirmedTransactionRequest req) { try { _logger.Info(string.Format("Getting unconfirmed transactions with filter <<{0}>>", req.ToQuery())); var response = await _networkApi.ActivePeer.MakeRequest(ArkStaticStrings.ArkHttpMethods.GET, string.Format(ArkStaticStrings.ArkApiPaths.Transaction.GET_ALL_UNCONFIRMED + "{0}", req.ToQuery())).ConfigureAwait(false); return(JsonConvert.DeserializeObject <ArkTransactionList>(response)); } catch (Exception e) { _logger.Error(e.ToString()); throw e; } }