static void Main(string[] args) { var ethermine = new Ethermine(); var miner = ethermine.GetMiner("97ca8a408e0f9315fa46c0d3d5e45956ac1ac7fe"); // get miner's statistics synchronously var miningStatistics = miner.GetStatisticsAsync().Result; // convert statistics into json formatted string var json = JsonConvert.SerializeObject(miningStatistics, Formatting.Indented); // print statistics to console Console.WriteLine(json); }
public List <Pool> GetPools() { List <Pool> pools = new List <Pool>(); try { Pool pool1 = new Ethermine("Ethermine", "us1-etc.ethermine.org:4444"); pools.Add(pool1); return(pools); } catch (Exception e) { } return(pools); }
public List <Pool> GetPools() { List <Pool> pools = new List <Pool>(); try { Pool pool1 = new Ethermine("Ethermine", "us1.ethermine.org:4444"); Pool pool2 = new Nanopool("Nanopool", "eth-us-west1.nanopool.org:9999"); pools.Add(pool1); pools.Add(pool2); return(pools); } catch (Exception e) { } return(pools); }