@kamino-finance/klend-sdk
Version:
Typescript SDK for interacting with the Kamino Lending (klend) protocol
18 lines • 832 B
TypeScript
import { PublicKey } from '@solana/web3.js';
import { ConfigType } from '../classes';
import { IBackOffOptions } from 'exponential-backoff';
export type ApiFilterOptions = {
isCurated?: boolean;
};
/**
* Fetch config from the API
* A good place to start to find active klend markets without expensive RPC calls
*
* @param programId - The program id to retrieve config for
* @param source - CDN is a json file hosted in the cloud, API is a webserver
* @param filterOptions - Config options to filter markets by
*/
export declare function getMarketsFromApi(programId?: PublicKey, source?: 'API' | 'CDN', filterOptions?: ApiFilterOptions): Promise<ConfigType>;
export declare const KAMINO_CDN_RETRY: Partial<IBackOffOptions>;
export declare const KAMINO_API_RETRY: Partial<IBackOffOptions>;
//# sourceMappingURL=api.d.ts.map