Skip to main content
Version: 2.x

Mining

 License: MIT 

Installation

pom.xml
<dependency>
<groupId>{{groupId}}</groupId>
<artifactId>{{artifactId}}</artifactId>
<version>{{version}}</version>
</dependency>

Features

Get accounts

try{
AccountListResponse res = client.getAccounts(new AccountListParams(algo, userName)).sync();
}catch(ApiException e){
//...
}

Get algorithms

try{
AlgorithmsResponse res = client.getAlgorithms().sync();
}catch(ApiException e){
//...
}

Get coins

try{
CoinsResponse res = client.getCoins().sync();
}catch(ApiException e){
//...
}

Get statistics

try{
StatisticsResponse res = client.getStatistics(new StatisticsParams(algo, userName)).sync();
}catch(ApiException e){
//...
}

Resell hasrate

try{
HashrateResaleResponse res = client.resellHashrate(new HashrateResaleParams(userName, algo, startTime, endTime, userName, hashrate)).sync();
}catch(ApiException e){
//...
}

Cancel hashrate resale configuration

try{
HashrateResaleCancellationResponse res = client.cancelHashrateResaleConfiguration(new HashrateResaleCancellationParams(configId, userName)).sync();
}catch(ApiException e){
//...
}

Get earnings list

try{
ProfitResponse res = client.getProfits(new ProfitsParams(sha256, userName), new FramedPaging(startTime, endTime, page, limit)).sync();
}catch(ApiException e){
//...
}

Get extra bonus list.

try{
OtherProfitsResponse res = client.getOtherProfits(new ProfitsParams(sha256, userName), new FramedPaging(startTime, endTime, page, limit)).sync();
}catch(ApiException e){
//...
}

Get mining account earning

try{
AccountProfitsResponse res = client.getAccountProfits(new AccountProfitsParams(algo, userName)).sync();
}catch(ApiException e){
//...
}

Get hashrate resale list

try{
HashrateResaleListResponse res = client.getHashrateResales().sync();
}catch(ApiException e){
//...
}

Get hashrate resale detail

try{
HashrateResaleDetailResponse res = client.getHashrateResalesDetails(new HashrateResaleDetailParam(configId, userName)).sync();
}catch(ApiException e){
//...
}

Get miners list

try{
WorkersResponse res = client.getMiners(new MinersParams(algo, userName)).sync();
}catch(ApiException e){
//...
}

Get miners details list

try{
MinerDetailsResponse res = client.getMinersDetails(new MinerDetailsParams(algo, userName, workerName)).sync();
}catch(ApiException e){
//...
}