Skip to main content

Class: MinerApi

MinerApi - object-oriented interface

Export

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MinerApi(configuration?, basePath?, fetch?)

Parameters

NameTypeDefault value
configuration?Configurationundefined
basePathstringBASE_PATH
fetchFetchAPIportableFetch

Inherited from

BaseAPI.constructor

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:60

Properties

basePath

Protected basePath: string = BASE_PATH

Inherited from

BaseAPI.basePath

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:60


configuration

Protected configuration: Configuration

Inherited from

BaseAPI.configuration

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:58


fetch

Protected fetch: FetchAPI = portableFetch

Inherited from

BaseAPI.fetch

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:60

Methods

publicMinersDealsMinerGet

publicMinersDealsMinerGet(miner, ignoreFailed?, options?): Promise<Response>

This endpoint returns all miners deals

Summary

Get all miners deals

Throws

Memberof

MinerApi

Parameters

NameTypeDescription
minerstringFilter by miner
ignoreFailed?stringIgnore Failed
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:4856


publicMinersStatsMinerGet

publicMinersStatsMinerGet(miner, options?): Promise<Response>

This endpoint returns miner stats

Summary

Get miner stats

Throws

Memberof

MinerApi

Parameters

NameTypeDescription
minerstringFilter by miner
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:4868