Example #1
0
 public Task <Wallet> GetCurrentWalletAsync()
 => GetAsync <Wallet>(MinerRoutes.GetCurrentWalletAsync());
Example #2
0
 public Task <UserInfo> GetCurrentUserAync()
 => GetAsync <UserInfo>(MinerRoutes.GetCurrentUser());
Example #3
0
 public Task StartPlotGenerationAsync(PlottingConfiguration configuration)
 => PostAsync(MinerRoutes.StartPlotGeneration(), configuration);
Example #4
0
 public Task <string[]> GetPoolLogAsync(ushort count)
 => GetAsync <string[]>(MinerRoutes.GetPoolLog(count));
Example #5
0
 public Task <bool> DeletePlotByPublicKeyAsync(string publicKey)
 => PostAsync <bool>(MinerRoutes.DeletePlotByPublicKey(), new Dictionary <string, string>()
 {
     ["publicKey"] = publicKey.ToString(),
 });
Example #6
0
 public Task <bool> DeletePlotByFileNameAsync(string fileName)
 => PostAsync <bool>(MinerRoutes.DeletePlotByFileName(), new Dictionary <string, string>()
 {
     ["fileName"] = fileName,
 });
Example #7
0
 public Task <Plot[]> GetPlotsAsync()
 => GetAsync <Plot[]>(MinerRoutes.ListPlots());
Example #8
0
 public Task <string[]> GetChiaLogAsync(ushort count)
 => GetAsync <string[]>(MinerRoutes.GetChiaLog(ApiUrl, count));
Example #9
0
 public Task <List <Miner> > ListOwnedMinersAsync()
 => GetAsync <List <Miner> >(MinerRoutes.ListOwnedMiners(ApiUrl));
Example #10
0
 public Task <MinerStatus> GetStatusAsync()
 => GetAsync <MinerStatus>(MinerRoutes.Status());
Example #11
0
 public Task <Miner> GetCurrentMinerAsync()
 => GetAsync <Miner>(MinerRoutes.GetCurrentMiner(ApiUrl));
Example #12
0
 public Task <User> GetCurrentUserAync()
 => GetAsync <User>(MinerRoutes.GetCurrentUser(ApiUrl));
Example #13
0
 public Task <Wallet> GetPoolWalletAsync()
 => GetAsync <Wallet>(MinerRoutes.GetPoolWalletAsync(ApiUrl));
Example #14
0
 public Task <MinerInfo> GetCurrentMinerAsync()
 => GetAsync <MinerInfo>(MinerRoutes.GetCurrentMiner());
Example #15
0
 public Task ReloadPlotsAsync()
 => PostAsync(MinerRoutes.ReloadPlots());
Example #16
0
 public Task <List <PlotterInfo> > ListOwnedPlottersAsync()
 => GetAsync <List <PlotterInfo> >(MinerRoutes.ListOwnedPlotters());
Example #17
0
 public Task <PlotInfo[]> GetPlotsAsync()
 => GetAsync <PlotInfo[]>(MinerRoutes.ListPlots(ApiUrl));