Add Label and accountKeyPath to the on chain payment methods (#2166)

This commit is contained in:
Nicolas Dorier
2020-12-28 21:59:01 +09:00
committed by GitHub
parent f64f86fbb6
commit 623347bc48
7 changed files with 132 additions and 5 deletions

View File

@@ -1,3 +1,6 @@
using NBitcoin;
using Newtonsoft.Json;
namespace BTCPayServer.Client.Models
{
public class OnChainPaymentMethodData
@@ -22,6 +25,11 @@ namespace BTCPayServer.Client.Models
/// </summary>
public string DerivationScheme { get; set; }
public string Label { get; set; }
[JsonConverter(typeof(NBitcoin.JsonConverters.KeyPathJsonConverter))]
public RootedKeyPath AccountKeyPath { get; set; }
public OnChainPaymentMethodData()
{
}