Skip to main content

EstuaryClient.MinerApi

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

MethodHTTP requestDescription
minerClaimMinerGetGET /miner/claim/{miner}Get Claim Miner Message
minerClaimPostPOST /miner/claimClaim Miner
minerSetInfoMinerPutPUT /miner/set-info/{miner}Set Miner Info
minerSuspendMinerPostPOST /miner/suspend/{miner}Suspend Miner
minerUnsuspendMinerPutPUT /miner/unsuspend/{miner}Unuspend Miner
publicMinersDealsMinerGetGET /public/miners/deals/{miner}Get all miners deals
publicMinersStatsMinerGetGET /public/miners/stats/{miner}Get miner stats

minerClaimMinerGet

ApiClaimMsgResponse minerClaimMinerGet(miner)

Get Claim Miner Message

This endpoint lets a user get the message in order to claim a miner

Example

import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
let 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';

let apiInstance = new EstuaryClient.MinerApi();
let miner = "miner_example"; // String | Miner claim message

apiInstance.minerClaimMinerGet(miner, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});

Parameters

NameTypeDescriptionNotes
minerStringMiner claim message

Return type

ApiClaimMsgResponse

Authorization

bearerAuth

HTTP request headers

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

minerClaimPost

ApiClaimResponse minerClaimPost(body)

Claim Miner

This endpoint lets a user claim a miner

Example

import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
let 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';

let apiInstance = new EstuaryClient.MinerApi();
let body = new EstuaryClient.MinerClaimMinerBody(); // MinerClaimMinerBody | Claim Miner Body

apiInstance.minerClaimPost(body, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});

Parameters

NameTypeDescriptionNotes
bodyMinerClaimMinerBodyClaim Miner Body

Return type

ApiClaimResponse

Authorization

bearerAuth

HTTP request headers

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

minerSetInfoMinerPut

ApiEmptyResp minerSetInfoMinerPut(body, miner)

Set Miner Info

This endpoint lets a user set miner info.

Example

import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
let 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';

let apiInstance = new EstuaryClient.MinerApi();
let body = new EstuaryClient.MinerMinerSetInfoParams(); // MinerMinerSetInfoParams | Miner set info params
let miner = "miner_example"; // String | Miner to set info for

apiInstance.minerSetInfoMinerPut(body, miner, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});

Parameters

NameTypeDescriptionNotes
bodyMinerMinerSetInfoParamsMiner set info params
minerStringMiner to set info for

Return type

ApiEmptyResp

Authorization

bearerAuth

HTTP request headers

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

minerSuspendMinerPost

ApiEmptyResp minerSuspendMinerPost(body, miner)

Suspend Miner

This endpoint lets a user suspend a miner.

Example

import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
let 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';

let apiInstance = new EstuaryClient.MinerApi();
let body = new EstuaryClient.MinerSuspendMinerBody(); // MinerSuspendMinerBody | Suspend Miner Body
let miner = "miner_example"; // String | Miner to suspend

apiInstance.minerSuspendMinerPost(body, miner, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});

Parameters

NameTypeDescriptionNotes
bodyMinerSuspendMinerBodySuspend Miner Body
minerStringMiner to suspend

Return type

ApiEmptyResp

Authorization

bearerAuth

HTTP request headers

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

minerUnsuspendMinerPut

ApiEmptyResp minerUnsuspendMinerPut(miner)

Unuspend Miner

This endpoint lets a user unsuspend a miner.

Example

import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
let 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';

let apiInstance = new EstuaryClient.MinerApi();
let miner = "miner_example"; // String | Miner to unsuspend

apiInstance.minerUnsuspendMinerPut(miner, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});

Parameters

NameTypeDescriptionNotes
minerStringMiner to unsuspend

Return type

ApiEmptyResp

Authorization

bearerAuth

HTTP request headers

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

publicMinersDealsMinerGet

'String' publicMinersDealsMinerGet(miner, opts)

Get all miners deals

This endpoint returns all miners deals

Example

import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
let 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';

let apiInstance = new EstuaryClient.MinerApi();
let miner = "miner_example"; // String | Filter by miner
let opts = {
'ignoreFailed': "ignoreFailed_example" // String | Ignore Failed
};
apiInstance.publicMinersDealsMinerGet(miner, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});

Parameters

NameTypeDescriptionNotes
minerStringFilter by miner
ignoreFailedStringIgnore Failed[optional]

Return type

'String'

Authorization

bearerAuth

HTTP request headers

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

publicMinersStatsMinerGet

'String' publicMinersStatsMinerGet(miner)

Get miner stats

This endpoint returns miner stats

Example

import {EstuaryClient} from 'estuary-client';
let defaultClient = EstuaryClient.ApiClient.instance;

// Configure API key authorization: bearerAuth
let 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';

let apiInstance = new EstuaryClient.MinerApi();
let miner = "miner_example"; // String | Filter by miner

apiInstance.publicMinersStatsMinerGet(miner, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});

Parameters

NameTypeDescriptionNotes
minerStringFilter by miner

Return type

'String'

Authorization

bearerAuth

HTTP request headers

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