Пример #1
0
        public async Task <List <SourceHeader> > GetData()
        {
            HttpDataFeed httpDataFeed = new HttpDataFeed();

            System.Net.Http.HttpResponseMessage response = await httpDataFeed.GetAsync("v1/eth/blocks/all");

            return(await response.Content.ReadAsAsync <List <SourceHeader> >());
        }
        public async Task <List <BtcUcBlockchain> > GetData()
        {
            HttpDataFeed httpDataFeed = new HttpDataFeed();

            System.Net.Http.HttpResponseMessage response =
                await httpDataFeed.GetAsync("v1/btc/unconfirmed/all");

            return(await response.Content.ReadAsAsync <List <BtcUcBlockchain> >());
        }
Пример #3
0
        public async Task <EllipticTx> GetData(string tx)
        {
            HttpDataFeed httpDataFeed = new HttpDataFeed("https://blockchain.info/");

            System.Net.Http.HttpResponseMessage response =
                await httpDataFeed.GetAsync($"rawtx/{tx}");

            return(await response.Content.ReadAsAsync <EllipticTx>());
        }