Beispiel #1
0
 public string InputsAddrs()
 {
     if (TxInputs != null)
     {
         return(string.Join(",", TxInputs.Select(i => i.Addr).Distinct()));
     }
     return("");
 }
Beispiel #2
0
        public void simple_synchronous_call_gettxinputs_returns_result()
        {
            TransactionClient client = new TransactionClient();
            TxInputs          result = client.GetTxInputs(Network.Doge, "6f47f0b2e1ec762698a9b62fa23b98881b03d052c9d8cb1d16bb0b04eb3b7c5b");

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Status == Consts.Success);
            Assert.IsTrue(result.Data.Txid == "6f47f0b2e1ec762698a9b62fa23b98881b03d052c9d8cb1d16bb0b04eb3b7c5b");
        }
Beispiel #3
0
 public TxInput TxInputGet(string txid, uint n)
 {
     return(TxInputs.SingleOrDefault(i => i.TxId == txid && i.N == n));
 }
Beispiel #4
0
        public async Task <TxInputs> GetTxInputsAsync(Network network, string transactionId, int?inputNum = null)
        {
            TxInputs response = await GetQuery <TxInputs, TxidInputError>(string.Format(GetTxInputsUrl, network._network, transactionId, inputNum));

            return(response);
        }