EstuaryClient.MinerApi
All URIs are relative to https://api.estuary.tech
Method | HTTP request | Description |
---|---|---|
publicMinersDealsMinerGet | GET /public/miners/deals/{miner} | Get all miners deals |
publicMinersStatsMinerGet | GET /public/miners/stats/{miner} | Get miner stats |
Get all miners deals
This endpoint returns all miners deals
Example
var EstuaryClient = require('estuary-client');
var defaultClient = EstuaryClient.ApiClient.instance;
// Configure API key authorization: bearerAuth
var bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.apiKeyPrefix = 'Token';
var apiInstance = new EstuaryClient.MinerApi();
var miner = "miner_example"; // String | Filter by miner
var opts = {
'ignoreFailed': "ignoreFailed_example" // String | Ignore Failed
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.publicMinersDealsMinerGet(miner, opts, callback);
Parameters
Name | Type | Description | Notes |
---|---|---|---|
miner | String | Filter by miner | |
ignoreFailed | String | Ignore Failed | [optional] |
Return type
null (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Get miner stats
This endpoint returns miner stats
Example
var EstuaryClient = require('estuary-client');
var defaultClient = EstuaryClient.ApiClient.instance;
// Configure API key authorization: bearerAuth
var bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//bearerAuth.apiKeyPrefix = 'Token';
var apiInstance = new EstuaryClient.MinerApi();
var miner = "miner_example"; // String | Filter by miner
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.publicMinersStatsMinerGet(miner, callback);
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