Skip to main content

MinerApi

All URIs are relative to https://api.estuary.tech

MethodHTTP requestDescription
publicMinersDealsMinerGetGET /public/miners/deals/{miner}Get all miners deals
publicMinersStatsMinerGetGET /public/miners/stats/{miner}Get miner stats
# **publicMinersDealsMinerGet** > publicMinersDealsMinerGet(miner, ignoreFailed)

Get all miners deals

This endpoint returns all miners deals

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.MinerApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

MinerApi apiInstance = new MinerApi();
String miner = "miner_example"; // String | Filter by miner
String ignoreFailed = "ignoreFailed_example"; // String | Ignore Failed
try {
apiInstance.publicMinersDealsMinerGet(miner, ignoreFailed);
} catch (ApiException e) {
System.err.println("Exception when calling MinerApi#publicMinersDealsMinerGet");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
minerStringFilter by miner
ignoreFailedStringIgnore Failed[optional]

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json
# **publicMinersStatsMinerGet** > publicMinersStatsMinerGet(miner)

Get miner stats

This endpoint returns miner stats

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.MinerApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: bearerAuth
ApiKeyAuth bearerAuth = (ApiKeyAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.setApiKeyPrefix("Token");

MinerApi apiInstance = new MinerApi();
String miner = "miner_example"; // String | Filter by miner
try {
apiInstance.publicMinersStatsMinerGet(miner);
} catch (ApiException e) {
System.err.println("Exception when calling MinerApi#publicMinersStatsMinerGet");
e.printStackTrace();
}

Parameters

NameTypeDescriptionNotes
minerStringFilter by miner

Return type

null (empty response body)

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json