示例#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> >());
        }
        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>());
        }