public async Task <ActionResult> Deposit([FromBody] WalletDepositRequest request) { try { var receipts = await WalletUtils.Deposit(_dbContext, request); foreach (var receipt in receipts) { var identity = await _dbContext.UserIdentity.FirstOrDefaultAsync(u => u.UserId == receipt.ReceiverId); await BitcornUtils.TxTracking(_configuration, new { txid = receipt.BlockchainTxId, time = DateTime.Now, method = "deposit", platform = "wallet-server", amount = receipt.Amount, userid = receipt.ReceiverId, twitchUsername = identity.TwitchUsername, discordUsername = identity.DiscordUsername }); } return(Ok()); } catch (Exception e) { await BITCORNLogger.LogError(_dbContext, e); throw e; } }