Exemple #1
0
        public void simple_synchronous_call_istxconfirmed_returns_result()
        {
            TransactionClient client = new TransactionClient();
            TxConfirmed       result = client.IsTxConfirmed(Network.Doge, "6f47f0b2e1ec762698a9b62fa23b98881b03d052c9d8cb1d16bb0b04eb3b7c5b");

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Status == Consts.Success);
            Assert.IsTrue(result.Data.Txid == "6f47f0b2e1ec762698a9b62fa23b98881b03d052c9d8cb1d16bb0b04eb3b7c5b");
            Assert.IsTrue(result.Data.IsConfirmed);
        }
Exemple #2
0
        public async Task <TxConfirmed> IsTxConfirmedAsync(Network network, string transactionId)
        {
            TxConfirmed response = await GetQuery <TxConfirmed, TxidError>(string.Format(IsTxConfirmedUrl, network._network, transactionId));

            return(response);
        }