Skip to main content

Class: PublicApi

PublicApi - object-oriented interface

Export

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

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

publicByCidCidGet

publicByCidCidGet(cid, options?): Promise<Response>

This endpoint returns the content associated with a CID

Summary

Get Content by Cid

Throws

Memberof

PublicApi

Parameters

NameTypeDescription
cidstringCid
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

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


publicInfoGet

publicInfoGet(options?): Promise<Response>

This endpoint returns information about the node

Summary

Get public node info

Throws

Memberof

PublicApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

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


publicMetricsDealsOnChainGet

publicMetricsDealsOnChainGet(options?): Promise<Response>

This endpoint is used to get deal metrics

Summary

Get deal metrics

Throws

Memberof

PublicApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

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


publicMinersDealsMinerGet

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

This endpoint returns all miners deals

Summary

Get all miners deals

Throws

Memberof

PublicApi

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:7310


publicMinersFailuresMinerGet

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

This endpoint returns all miners

Summary

Get all miners

Throws

Memberof

PublicApi

Parameters

NameTypeDescription
minerstringFilter by miner
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

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


publicMinersGet

publicMinersGet(options?): Promise<Response>

This endpoint returns all miners

Summary

Get all miners

Throws

Memberof

PublicApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

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


publicMinersStatsMinerGet

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

This endpoint returns miner stats

Summary

Get miner stats

Throws

Memberof

PublicApi

Parameters

NameTypeDescription
minerstringFilter by miner
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

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


publicNetAddrsGet

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

This endpoint is used to get net addrs

Summary

Net Addrs

Throws

Memberof

PublicApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<string[]>

Defined in

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


publicNetPeersGet

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

This endpoint is used to get net peers

Summary

Net Peers

Throws

Memberof

PublicApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<string[]>

Defined in

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


publicStatsGet

publicStatsGet(options?): Promise<Response>

This endpoint is used to get public stats.

Summary

Public stats

Throws

Memberof

PublicApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

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