mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
17 lines
502 B
C#
17 lines
502 B
C#
using NBXplorer.Models;
|
|
|
|
namespace BTCPayServer.Events
|
|
{
|
|
public class NewOnChainTransactionEvent
|
|
{
|
|
public NewTransactionEvent NewTransactionEvent { get; set; }
|
|
public string CryptoCode { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
var state = NewTransactionEvent.BlockId == null ? "Unconfirmed" : "Confirmed";
|
|
return $"{CryptoCode}: New transaction {NewTransactionEvent.TransactionData.TransactionHash} ({state})";
|
|
}
|
|
}
|
|
}
|