UNPKG

test-kohin-sdk

Version:

The Kohin JS is a comprehensive developer toolkit designed to integrate Kohin's decentralized insurance system seamlessly into your applications. It enables efficient interaction with Kohin smart contracts and backend APIs, facilitating management and ana

21 lines (20 loc) 706 B
import { AxiosInstance } from "axios"; /** * Base class for API interactions, handling axios instance setup and authentication. */ export declare class BaseApi { protected axiosInstance: AxiosInstance; protected accessKey: string; protected secretKey: string; /** * Initializes the BaseApi with access and secret keys, and sets up axios instance. * @param accessKey - API access key. * @param secretKey - API secret key. */ constructor(accessKey: string, secretKey: string); /** * Sets custom headers for axios instance. * @param headers - An object containing header key-value pairs. */ setHeaders(headers: Record<string, string>): void; }