reference
Class: Yagna
utils/yagna/yagna.Yagna
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Yagna(options?
)
Parameters
Name | Type |
---|---|
options? | YagnaOptions |
Defined in
Properties
apiKey
• Protected
Readonly
apiKey: string
Defined in
apiBaseUrl
• Protected
Readonly
apiBaseUrl: string
Defined in
Methods
getApi
▸ getApi(): YagnaApi
Returns
Defined in
connect
▸ connect(): Promise
<void
>
Returns
Promise
<void
>
Defined in
end
▸ end(): Promise
<void
>
Returns
Promise
<void
>
Defined in
createApi
▸ Protected
createApi(): YagnaApi
Returns
Defined in
getApiConfig
▸ Protected
getApiConfig(): Configuration
Returns
Configuration
Defined in
getApiUrl
▸ Protected
getApiUrl(apiName?
): string
Parameters
Name | Type |
---|---|
apiName? | string |
Returns
string
Defined in
errorHandler
▸ Protected
errorHandler(error
): Promise
<AxiosError
<unknown
, any
>>
Parameters
Name | Type |
---|---|
error | AxiosError <unknown , any > |
Returns
Promise
<AxiosError
<unknown
, any
>>
Defined in
addErrorHandler
▸ Protected
addErrorHandler(api
): void
Parameters
Name | Type |
---|---|
api | YagnaApi |
Returns
void