Exemple #1
0
        public async Task <Response <List <Wallet> > > VotersAsync(string id, Dictionary <string, string> parameters = null)
        {
            var uri      = QueryBuilder.Build(string.Format("delegates/{0}/voters", id), parameters);
            var response = await httpClient.GetStringAsync(uri);

            return(Two.ConvertResponse <List <Wallet> >(response));
        }
Exemple #2
0
        public async Task <Response <Delegate> > ShowAsync(string id)
        {
            var response = await httpClient.GetStringAsync(string.Format("delegates/{0}", id));

            return(Two.ConvertResponse <Delegate>(response));
        }
Exemple #3
0
        public async Task <Response <List <Transaction> > > TransactionsAsync(string id, Dictionary <string, string> parameters = null)
        {
            var response = await httpClient.GetStringAsync(string.Format("wallets/{0}/transactions", id));

            return(Two.ConvertResponse <List <Transaction> >(response));
        }
Exemple #4
0
        public async Task <Response <NodeConfiguration> > ConfigurationAsync()
        {
            var response = await httpClient.GetStringAsync("node/configuration");

            return(Two.ConvertResponse <NodeConfiguration>(response));
        }
Exemple #5
0
        public async Task <Response <NodeSyncing> > SyncingAsync()
        {
            var response = await httpClient.GetStringAsync("node/syncing");

            return(Two.ConvertResponse <NodeSyncing>(response));
        }
Exemple #6
0
        public async Task <Response <NodeStatus> > StatusAsync()
        {
            var response = await httpClient.GetStringAsync("node/status");

            return(Two.ConvertResponse <NodeStatus>(response));
        }