public NewBtcTransactionRequest(IEnumerable <TransactionAddress> inputs, IEnumerable <TransactionAddress> outputs, Fee fee,
                                        IEnumerable <string> wifs)
        {
            CreateTx = new CreateTx(fee);
            foreach (var input in inputs)
            {
                CreateTx.Inputs.Add(new TransactionItem(input.Address, input.Value));
            }
            foreach (var output in outputs)
            {
                CreateTx.Outputs.Add(new TransactionItem(output.Address, output.Value));
            }

            Wifs.AddRange(wifs);
        }
Esempio n. 2
0
 public SignTransactionRequest(string hexEncodedInfo, IEnumerable <string> wifs)
 {
     Hex = hexEncodedInfo;
     Wifs.AddRange(wifs);
 }