2020-06-08 16:40:58 +02:00
|
|
|
using BTCPayServer.Client.JsonConverters;
|
|
|
|
using BTCPayServer.Lightning;
|
2020-05-29 02:00:13 +02:00
|
|
|
using NBitcoin;
|
|
|
|
using NBitcoin.JsonConverters;
|
|
|
|
using Newtonsoft.Json;
|
2020-05-29 10:15:01 +02:00
|
|
|
using MoneyJsonConverter = BTCPayServer.Client.JsonConverters.MoneyJsonConverter;
|
2020-05-29 02:00:13 +02:00
|
|
|
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
|
|
{
|
|
|
|
public class OpenLightningChannelRequest
|
|
|
|
{
|
2020-06-08 16:40:58 +02:00
|
|
|
[JsonConverter(typeof(NodeUriJsonConverter))]
|
|
|
|
[JsonProperty("nodeURI")]
|
2022-12-23 09:17:09 +01:00
|
|
|
public BTCPayServer.Lightning.NodeInfo NodeURI { get; set; }
|
2020-06-08 16:40:58 +02:00
|
|
|
[JsonConverter(typeof(MoneyJsonConverter))]
|
2020-05-29 02:00:13 +02:00
|
|
|
public Money ChannelAmount { get; set; }
|
|
|
|
|
2020-06-08 16:40:58 +02:00
|
|
|
[JsonConverter(typeof(FeeRateJsonConverter))]
|
2020-05-29 02:00:13 +02:00
|
|
|
public FeeRate FeeRate { get; set; }
|
|
|
|
}
|
|
|
|
}
|