mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-24 06:47:50 +01:00
26 lines
930 B
C#
26 lines
930 B
C#
|
using BTCPayServer.Client.JsonConverters;
|
|||
|
using NBitcoin;
|
|||
|
using Newtonsoft.Json;
|
|||
|
using Newtonsoft.Json.Converters;
|
|||
|
|
|||
|
namespace BTCPayServer.Client
|
|||
|
{
|
|||
|
public class GenerateOnChainWalletRequest
|
|||
|
{
|
|||
|
public int AccountNumber { get; set; } = 0;
|
|||
|
[JsonConverter(typeof(MnemonicJsonConverter))]
|
|||
|
public Mnemonic ExistingMnemonic { get; set; }
|
|||
|
[JsonConverter(typeof(WordlistJsonConverter))]
|
|||
|
public NBitcoin.Wordlist WordList { get; set; }
|
|||
|
|
|||
|
[JsonConverter(typeof(WordcountJsonConverter))]
|
|||
|
public NBitcoin.WordCount? WordCount { get; set; } = NBitcoin.WordCount.Twelve;
|
|||
|
|
|||
|
[JsonConverter(typeof(StringEnumConverter))]
|
|||
|
public NBitcoin.ScriptPubKeyType ScriptPubKeyType { get; set; } = ScriptPubKeyType.Segwit;
|
|||
|
public string Passphrase { get; set; }
|
|||
|
public bool ImportKeysToRPC { get; set; }
|
|||
|
public bool SavePrivateKeys { get; set; }
|
|||
|
}
|
|||
|
}
|