reference

Class: Yagna

utils/yagna/yagna.Yagna

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Yagna(options?)

Parameters

NameType
options?YagnaOptions

Defined in

src/utils/yagna/yagna.ts:35

Properties

apiKey

Protected Readonly apiKey: string

Defined in

src/utils/yagna/yagna.ts:32


apiBaseUrl

Protected Readonly apiBaseUrl: string

Defined in

src/utils/yagna/yagna.ts:33

Methods

getApi

getApi(): YagnaApi

Returns

YagnaApi

Defined in

src/utils/yagna/yagna.ts:44


connect

connect(): Promise<void>

Returns

Promise<void>

Defined in

src/utils/yagna/yagna.ts:48


end

end(): Promise<void>

Returns

Promise<void>

Defined in

src/utils/yagna/yagna.ts:52


createApi

Protected createApi(): YagnaApi

Returns

YagnaApi

Defined in

src/utils/yagna/yagna.ts:57


getApiConfig

Protected getApiConfig(): Configuration

Returns

Configuration

Defined in

src/utils/yagna/yagna.ts:78


getApiUrl

Protected getApiUrl(apiName?): string

Parameters

NameType
apiName?string

Returns

string

Defined in

src/utils/yagna/yagna.ts:89


errorHandler

Protected errorHandler(error): Promise<AxiosError<unknown, any>>

Parameters

NameType
errorAxiosError<unknown, any>

Returns

Promise<AxiosError<unknown, any>>

Defined in

src/utils/yagna/yagna.ts:93


addErrorHandler

Protected addErrorHandler(api): void

Parameters

NameType
apiYagnaApi

Returns

void

Defined in

src/utils/yagna/yagna.ts:102