2018-10-31 16:19:25 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Models.WalletViewModels
|
|
|
|
|
{
|
|
|
|
|
public class WalletSendModel
|
|
|
|
|
{
|
2019-05-21 10:10:07 +02:00
|
|
|
|
|
|
|
|
|
public List<TransactionOutput> Outputs { get; set; } = new List<TransactionOutput>();
|
2018-10-31 16:19:25 +01:00
|
|
|
|
|
2019-05-21 10:10:07 +02:00
|
|
|
|
public class TransactionOutput
|
|
|
|
|
{
|
|
|
|
|
[Display(Name = "Destination Address")]
|
|
|
|
|
[Required]
|
|
|
|
|
public string DestinationAddress { get; set; }
|
|
|
|
|
|
|
|
|
|
[Display(Name = "Amount")] [Required] [Range(0.0, double.MaxValue)]public decimal? Amount { get; set; }
|
2018-10-31 16:19:25 +01:00
|
|
|
|
|
2019-05-21 10:10:07 +02:00
|
|
|
|
|
2019-05-24 07:28:09 +02:00
|
|
|
|
[Display(Name = "Subtract fees from amount")]
|
2019-05-21 10:10:07 +02:00
|
|
|
|
public bool SubtractFeesFromOutput { get; set; }
|
|
|
|
|
}
|
2018-10-31 16:19:25 +01:00
|
|
|
|
public decimal CurrentBalance { get; set; }
|
|
|
|
|
|
|
|
|
|
public string CryptoCode { get; set; }
|
|
|
|
|
|
|
|
|
|
public int RecommendedSatoshiPerByte { get; set; }
|
|
|
|
|
|
|
|
|
|
[Range(1, int.MaxValue)]
|
|
|
|
|
[Display(Name = "Fee rate (satoshi per byte)")]
|
|
|
|
|
[Required]
|
|
|
|
|
public int FeeSatoshiPerByte { get; set; }
|
2019-01-15 15:50:45 +01:00
|
|
|
|
|
|
|
|
|
[Display(Name = "Make sure no change UTXO is created")]
|
|
|
|
|
public bool NoChange { get; set; }
|
2018-10-31 16:19:25 +01:00
|
|
|
|
public decimal? Rate { get; set; }
|
|
|
|
|
public int Divisibility { get; set; }
|
|
|
|
|
public string Fiat { get; set; }
|
|
|
|
|
public string RateError { get; set; }
|
2019-05-08 08:24:20 +02:00
|
|
|
|
public bool SupportRBF { get; set; }
|
|
|
|
|
[Display(Name = "Disable RBF")]
|
|
|
|
|
public bool DisableRBF { get; set; }
|
2018-10-31 16:19:25 +01:00
|
|
|
|
}
|
|
|
|
|
}
|