UNPKG

@kamino-finance/klend-sdk

Version:

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

16 lines 1.21 kB
import { Account, Blockhash, FullySignedTransaction, GetEpochInfoApi, GetLatestBlockhashApi, GetSignatureStatusesApi, Instruction, RpcSubscriptions, SendTransactionApi, Signature, SignatureNotificationsApi, SlotNotificationsApi, TransactionSigner, TransactionWithBlockhashLifetime } from '@solana/kit'; import { Rpc } from '@solana/kit'; import { AddressLookupTable } from '@solana-program/address-lookup-table'; import { CliConnectionPool } from './CliConnectionPool'; export declare function sendAndConfirmTx(c: CliConnectionPool, payer: TransactionSigner, ixs: Instruction[], luts?: Account<AddressLookupTable>[]): Promise<Signature>; export type BlockhashWithHeight = { blockhash: Blockhash; lastValidBlockHeight: bigint; slot: bigint; }; export declare function fetchBlockhash(rpc: Rpc<GetLatestBlockhashApi>): Promise<BlockhashWithHeight>; export declare function sendAndConfirmTxImpl({ rpc, wsRpc, }: { rpc: Rpc<GetEpochInfoApi & GetSignatureStatusesApi & SendTransactionApi>; wsRpc: RpcSubscriptions<SignatureNotificationsApi & SlotNotificationsApi>; }, tx: FullySignedTransaction & TransactionWithBlockhashLifetime, slot: bigint): Promise<void>; //# sourceMappingURL=tx.d.ts.map