UNPKG

@kamino-finance/klend-sdk

Version:

Typescript SDK for interacting with the Kamino Lending (klend) protocol

14 lines 675 B
import { PublicKey } from '@solana/web3.js'; import { ConfigType } from '../classes'; import { IBackOffOptions } from 'exponential-backoff'; /** * 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 */ export declare function getMarketsFromApi(programId?: PublicKey, source?: 'API' | 'CDN'): Promise<ConfigType>; export declare const KAMINO_CDN_RETRY: Partial<IBackOffOptions>; export declare const KAMINO_API_RETRY: Partial<IBackOffOptions>; //# sourceMappingURL=api.d.ts.map