Hathor.Faucet.Services/WalletTransactionService.cs
/// <summary>
/// Get amount of HTR payed out in the last hour
/// </summary>
/// <returns></returns>
Get amount of HTR payed out in the last hour
Get amount of HTR payed out in the last hour
public Task<int> GetLastHourAmountAsync()
        {
            var time = DateTimeOffset.UtcNow.AddHours(-1);
            return dbContext.WalletTransactions.Where(x => x.CreatedDateTime > time).SumAsync(x => x.Amount);
        }
public Task < int > GetLastHourAmountAsync ( ) { var time = DateTimeOffset . UtcNow . AddHours ( - 1 ) ; return dbContext . WalletTransactions . Where ( x => x . CreatedDateTime > time ) . SumAsync ( x => x . Amount ) ; }
Get amount of HTR payed out in the last hour
Get amount of HTR payed out in the last hour
None