Class BaseBitBadgesApi<T>

Base class for the BitBadges API. It provides a base axios instance and methods for handling API errors.

Type Parameters

Hierarchy (view full)

Constructors

Properties

BACKEND_URL: string = ...
ConvertFunction: ((num: NumberType) => T)
accessToken: string = ''
apiKey: undefined | string = process.env.BITBADGES_API_KEY
appendedHeaders: Record<string, string> = {}
axios: AxiosInstance = ...

Methods