mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-18 21:32:27 +01:00
33 lines
1.2 KiB
C#
33 lines
1.2 KiB
C#
using System.Collections.Generic;
|
|
using BTCPayServer.Client.JsonConverters;
|
|
using BTCPayServer.JsonConverters;
|
|
using NBitcoin;
|
|
using NBitcoin.JsonConverters;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class CreateOnChainTransactionRequest
|
|
{
|
|
|
|
public class CreateOnChainTransactionRequestDestination
|
|
{
|
|
public string Destination { get; set; }
|
|
[JsonConverter(typeof(NumericStringJsonConverter))]
|
|
public decimal? Amount { get; set; }
|
|
public bool SubtractFromAmount { get; set; }
|
|
}
|
|
[JsonConverter(typeof(FeeRateJsonConverter))]
|
|
public FeeRate FeeRate { get; set; }
|
|
public bool ProceedWithPayjoin { get; set; } = true;
|
|
public bool ProceedWithBroadcast { get; set; } = true;
|
|
public bool NoChange { get; set; } = false;
|
|
[JsonProperty(ItemConverterType = typeof(SaneOutpointJsonConverter))]
|
|
public List<OutPoint> SelectedInputs { get; set; } = null;
|
|
public List<CreateOnChainTransactionRequestDestination> Destinations { get; set; }
|
|
[JsonProperty("rbf")]
|
|
public bool? RBF { get; set; } = null;
|
|
public bool ExcludeUnconfirmed { get; set; } = false;
|
|
}
|
|
}
|