Files
btcpayserver/BTCPayServer/Models/WalletViewModels/WalletPSBTViewModel.cs
nicolas.dorier 6da0a9a201 Can combine PSBT
2019-05-12 13:13:52 +09:00

26 lines
591 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using NBitcoin;
namespace BTCPayServer.Models.WalletViewModels
{
public class WalletPSBTViewModel
{
public string Decoded { get; set; }
public string PSBT { get; set; }
public List<string> Errors { get; set; } = new List<string>();
internal PSBT GetPSBT(Network network)
{
try
{
return NBitcoin.PSBT.Parse(PSBT, network);
}
catch { }
return null;
}
}
}