Ejemplo n.º 1
0
        public void simple_synchronous_call_getreceivedtx_returns_result_with_proxy()
        {
            AddressClient client = new AddressClient();
            OutputTx      result = client.GetReceivedTx(Network.Doge, "DRapidDiBYggT1zdrELnVhNDqyAHn89cRi", "e83d147c3bcd87c6efd5270896a179f6ecb1de8b8c8cc324645c5a14129baf8c");

            Assert.IsNotNull(result);
            Assert.IsTrue(result.Status == Consts.Success);
            Assert.IsTrue(result.Data.Address == "DRapidDiBYggT1zdrELnVhNDqyAHn89cRi");
        }
Ejemplo n.º 2
0
        public async Task <OutputTx> GetReceivedTxAsync(Network network, string address, string afterTxid = null)
        {
            OutputTx response = await GetQuery <OutputTx, AddressAfterTxError>(string.Format(GetReceivedTxUrl, network._network, address, afterTxid));

            return(response);
        }