UNPKG

@kamino-finance/klend-sdk

Version:

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

16 lines 932 B
import { AccountInfo, Commitment, Connection, GetProgramAccountsConfig, GetProgramAccountsResponse, PublicKey } from '@solana/web3.js'; /** * Uses zstd compression when fetching all accounts owned by a program for a smaller response size * Uses axios instead of node-fetch to work around a bug in node-fetch that causes subsequent requests with different encoding to fail * @param connection * @param programId * @param configOrCommitment */ export declare function getProgramAccounts(connection: Connection, programId: PublicKey, configOrCommitment?: GetProgramAccountsConfig | Commitment): Promise<GetProgramAccountsResponse>; export declare function getAccountOwner(connection: Connection, address: PublicKey): Promise<PublicKey>; export type Result = readonly Readonly<{ account: AccountInfo<string[]>; /** the account Pubkey as base-58 encoded string */ pubkey: string; }>[]; //# sourceMappingURL=rpc.d.ts.map