Can combine PSBT

This commit is contained in:
nicolas.dorier
2019-05-12 13:13:52 +09:00
parent 572fe3eacb
commit 6da0a9a201
7 changed files with 184 additions and 55 deletions

View File

@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using NBitcoin;
namespace BTCPayServer.Models.WalletViewModels
{
@@ -10,5 +11,15 @@ namespace BTCPayServer.Models.WalletViewModels
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;
}
}
}