Skip to main content

Class: NetApi

NetApi - object-oriented interface

Export

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new NetApi(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

netAddrsGet

netAddrsGet(options?): Promise<string[]>

This endpoint is used to get net addrs

Summary

Net Addrs

Throws

Memberof

NetApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<string[]>

Defined in

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


publicMinersFailuresMinerGet

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

This endpoint returns all miners

Summary

Get all miners

Throws

Memberof

NetApi

Parameters

NameTypeDescription
minerstringFilter by miner
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

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


publicMinersGet

publicMinersGet(options?): Promise<Response>

This endpoint returns all miners

Summary

Get all miners

Throws

Memberof

NetApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

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


publicNetAddrsGet

publicNetAddrsGet(options?): Promise<string[]>

This endpoint is used to get net addrs

Summary

Net Addrs

Throws

Memberof

NetApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<string[]>

Defined in

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


publicNetPeersGet

publicNetPeersGet(options?): Promise<string[]>

This endpoint is used to get net peers

Summary

Net Peers

Throws

Memberof

NetApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<string[]>

Defined in

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