Esempio n. 1
0
 /// <summary>
 /// Gets all the unconfirmed transactions asynchronously
 /// </summary>
 /// <returns>TransactionResponse with unconfirmed transactions list</returns>
 public async Task<TransactionsResponse> GetUnconfirmedTransactionsAsync(UnconfirmedTransactionsRequest req)
 {
     _url.Path = Constants.ApiGetUnconfirmedTransactions;
     _url.Query = req.ToQuery();
     var response = await _client.GetJsonAsync<TransactionsResponse>(_url.ToString());
     ResetPath();
     return response;
 }
Esempio n. 2
0
 /// <summary>
 /// Gets all the unconfirmed transactions synchronously
 /// </summary>
 /// <returns>TransactionResponse with transactions list</returns>
 public TransactionsResponse GetUnconfirmedTransactions(UnconfirmedTransactionsRequest req)
 {
     var response = GetUnconfirmedTransactionsAsync(req).GetAwaiter().GetResult();
     return response;
 }