NetApi
All URIs are relative to https://api.estuary.tech
Method | HTTP request | Description |
---|---|---|
netAddrsGet | GET /net/addrs | Net Addrs |
publicMinersFailuresMinerGet | GET /public/miners/failures/{miner} | Get all miners |
publicMinersGet | GET /public/miners | Get all miners |
publicNetAddrsGet | GET /public/net/addrs | Net Addrs |
publicNetPeersGet | GET /public/net/peers | Net Peers |
Net Addrs
This endpoint is used to get net addrs
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.NetApi;
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");
NetApi apiInstance = new NetApi();
try {
List<String> result = apiInstance.netAddrsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetApi#netAddrsGet");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
Return type
List<String>
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Get all miners
This endpoint returns all miners
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.NetApi;
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");
NetApi apiInstance = new NetApi();
String miner = "miner_example"; // String | Filter by miner
try {
apiInstance.publicMinersFailuresMinerGet(miner);
} catch (ApiException e) {
System.err.println("Exception when calling NetApi#publicMinersFailuresMinerGet");
e.printStackTrace();
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
miner | String | Filter by miner |
Return type
null (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Get all miners
This endpoint returns all miners
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.NetApi;
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");
NetApi apiInstance = new NetApi();
try {
apiInstance.publicMinersGet();
} catch (ApiException e) {
System.err.println("Exception when calling NetApi#publicMinersGet");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
Return type
null (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Net Addrs
This endpoint is used to get net addrs
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.NetApi;
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");
NetApi apiInstance = new NetApi();
try {
List<String> result = apiInstance.publicNetAddrsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetApi#publicNetAddrsGet");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
Return type
List<String>
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Net Peers
This endpoint is used to get net peers
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.NetApi;
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");
NetApi apiInstance = new NetApi();
try {
List<String> result = apiInstance.publicNetPeersGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetApi#publicNetPeersGet");
e.printStackTrace();
}
Parameters
This endpoint does not need any parameter.
Return type
List<String>
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json