@using System.Globalization @using BTCPayServer.Services.Altcoins.Ethereum.Payments @using BTCPayServer.Services.Altcoins.Ethereum.UI @model IEnumerable @{ var onchainPayments = Model.Where(entity => entity.GetPaymentMethodId().PaymentType == EthereumPaymentType.Instance).Select(payment => { var m = new EthereumPaymentViewModel(); var onChainPaymentData = payment.GetCryptoPaymentData() as EthereumLikePaymentData; m.Crypto = payment.GetPaymentMethodId().CryptoCode; m.DepositAddress = onChainPaymentData.GetDestination(); m.Amount = onChainPaymentData.GetValue().ToString(CultureInfo.InvariantCulture); m.Confirmations = onChainPaymentData.BlockNumber.HasValue ? $"{onChainPaymentData.ConfirmationCount} (block {onChainPaymentData.BlockNumber})" : "pending"; m.Amount = onChainPaymentData.GetValue().ToString(CultureInfo.InvariantCulture); m.BlockNumber = onChainPaymentData.BlockNumber; m.ReceivedTime = payment.ReceivedTime; m.BalanceLink = string.Format(CultureInfo.InvariantCulture, payment.Network.BlockExplorerLink, m.DepositAddress); m.Replaced = !payment.Accounted; m.Index = onChainPaymentData.AccountIndex; return m; }); } @if (onchainPayments.Any()) {

Ethereum/ERC-20 payments

@foreach (var payment in onchainPayments) { }
Crypto Amount Address Index Confirmations
@payment.Crypto @payment.Amount @payment.Index @payment.Confirmations
}