mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-03 17:36:59 +01:00
20 lines
493 B
C#
20 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";
|
|
}
|
|
}
|
|
}
|