btcpayserver/BTCPayServer/Events/TxOutReceivedEvent.cs
2017-12-17 14:17:42 +09:00

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";
}
}
}