mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-29 03:44:27 +01:00
21 lines
493 B
C#
21 lines
493 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using NBitcoin;
|
|
|
|
namespace BTCPayServer.Events
|
|
{
|
|
public class TxOutReceivedEvent
|
|
{
|
|
public Script ScriptPubKey { get; set; }
|
|
public BitcoinAddress Address { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
String address = Address?.ToString() ?? ScriptPubKey.ToHex();
|
|
return $"{address} received a transaction";
|
|
}
|
|
}
|
|
}
|