public ChangeControl(TreeView treeView, TCBitcoin bitcoin, CoinChangeType coinChangeType)
        {
            InitializeComponent();

            tvWallet   = treeView;
            tcBitcoin  = bitcoin;
            ChangeType = coinChangeType;
        }
Example #2
0
 public string NewChangeKey(string keyName, string hdPath, CoinChangeType changeType, ref int?addressIndex)
 {
     if (IsWalletInitialised)
     {
         NodeCash.proc_ChangeAddressIndex(CashAccountCode, keyName, (short)changeType, ref addressIndex);
         string changePath = $"{hdPath}{(short)changeType}/{addressIndex}/";
         ExtKey privateKey = hdRoot.Derive(new KeyPath(changePath));
         return($"{privateKey.PrivateKey.GetWif(GetNetwork).GetAddress(ScriptPubKeyType.Legacy)}");
     }
     else
     {
         return(string.Empty);
     }
 }
Example #3
0
 public bool AddChangeKey(string keyName, CoinChangeType changeType, string paymentAddress, int addressIndex, string note, string invoiceNumber)
 {
     return(NodeCash.proc_ChangeNew(CashAccountCode, keyName, (short)changeType, paymentAddress, addressIndex, invoiceNumber, note?.Length == 0 ? null : note) == 0);
 }