Skip to content
docs

KaminoVaultConfig

Defined in: protocol-lending-kamino-solana/src/vault.ts:11

optional api?: string | KaminoApi

Defined in: protocol-lending-kamino-solana/src/base.ts:39

API endpoint or a prepared client (default api.kamino.finance).

KaminoBaseConfig.api


optional asset?: string

Defined in: protocol-lending-kamino-solana/src/vault.ts:25

The mint the vault takes and pays out. The API’s answer must name it; supply needs it here or as its token, so a changed API answer cannot make the wallet deposit another asset.


optional fetch?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Defined in: protocol-lending-kamino-solana/src/base.ts:41

fetch implementation for the API (default global fetch).

(input, init?): Promise<Response>

MDN Reference

URL | RequestInfo

RequestInit

Promise<Response>

(input, init?): Promise<Response>

MDN Reference

string | URL | Request

RequestInit

Promise<Response>

KaminoBaseConfig.fetch


optional memo?: string

Defined in: protocol-lending-kamino-solana/src/base.ts:49

SPL memo (≤ 64 bytes) the API adds to every transaction.

KaminoBaseConfig.memo


optional rentAllowanceLamports?: number | bigint

Defined in: protocol-lending-kamino-solana/src/base.ts:47

SOL the transaction may spend on rent and fees beyond the amount (default 0.01 SOL).

KaminoBaseConfig.rentAllowanceLamports


optional skipFarm?: boolean

Defined in: protocol-lending-kamino-solana/src/vault.ts:20

Keep the shares in the wallet (default true). The guard then proves the shares arrive. With false they are staked in the vault farm, as the Kamino app does: they never reach the wallet, so the guard can only bound what leaves it; the instruction rules pin the stake to this vault’s farm (from the chain) and the wallet’s own farm state.


optional slippageBps?: number

Defined in: protocol-lending-kamino-solana/src/base.ts:45

Tolerance on what the wallet must receive on withdrawals / borrows, in basis points (default 50).

KaminoBaseConfig.slippageBps


optional timeoutMs?: number

Defined in: protocol-lending-kamino-solana/src/base.ts:43

Per-call timeout for the API, in ms (default 15 000). Ignored when api is a prepared client.

KaminoBaseConfig.timeoutMs


vault: string

Defined in: protocol-lending-kamino-solana/src/vault.ts:13

The Earn vault (kVault) address.