Skip to main content
The Solana DeFi lending ecosystem is documented through three comprehensive tables that provide insights into lending vaults, transaction-level TVL changes, and daily aggregated metrics.

Coverage

The lending tables currently include the following protocols:
ProjectProtocolDescription
kaminoklendLending protocol

Tables Overview

1. solana.defi.lending

Contains configuration information for lending vaults across supported protocols.

2. solana.defi.lending_tvl

Records all instruction-level changes in TVL, with each change tagged by action type (deposit, withdraw, borrow, etc.).

3. solana.defi.lending_tvl_daily

Provides daily aggregated TVL metrics for convenient analysis at daily granularity.

solana.defi.lending

This table contains configuration information for lending vaults across supported protocols.

Table Columns

Column NameDescriptionTypeExample
projectThe lending project namevarchar(8)kamino
protocolThe protocol identifiervarchar(5)kamino
lending_idUnique identifier for the lending vaultvarchar6WEGfej9B9wjxRs6t4BYpb9iCXd8CpTpJ8fVSNzHCC5y
lending_reserve_idIdentifier for the lending reservevarcharAtj6UREVWa7WxbF2EMKNyfmYUY1U1txughe2gjhcPDCo
mintToken mint address for the lending assetvarcharEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
liquidity_vaultAddress of the vault holding deposited liquidityvarcharBBcwMNSMyhhBnYE9pevEvkxKHGzTafMP9v3j7Kk7nAWM
collateral_mintMint address of the collateral tokenvarchar6M89FWrQaqcy3domy85J1a1wVMnviL86WeUqbqTXf1qb
collateral_liquidity_vaultAddress of the collateral liquidity vaultvarchar25x4aEFoJE3bk4sdNLgHrrmchyop1JvcmGA4ccA6tWWT
insurance_vaultAddress of the insurance vault for risk mitigationvarchar5uJJWrBEz4J1qQcHyqUkGLcVVaD7iRJfNqXXaKXoD9Gv
fee_vaultAddress of the vault collecting protocol feesvarcharHH7GLnRcGHJrdkEueVVj7mccNUjnSeWobDmtu9cHLkJV
nameToken name of the lending assetvarcharUSD Coin
symbolToken symbol for the lending vaultvarcharUSDC
decimalsNumber of decimal places for the tokennumber6
unique_idUnique identifier combining key fieldsvarcharlending_id-6W…5y_lending_reserve_id-At…Co_mint-EP…1v

solana.defi.lending_tvl

This table records every transaction that changes the TVL of lending vaults. Each record represents an instruction that moves assets in or out of a lending vault, with the action type indicating the nature of the transaction.

Action Types

The action column categorizes the type of transaction causing the TVL change:
  • deposit: User deposits assets into the lending vault
  • withdraw: User withdraws assets from the lending vault
  • borrow: User borrows assets from the lending vault
  • repay: User repays borrowed assets
  • borrow_fee: Fee charged on borrowing activity
  • flash_borrow: Borrow during a flashloan
  • flash_repay: Repayment at the end of a flashloan
  • flash_repay_fee: Fee charged in a flashloan
  • liquidate_repay: Repayment during liquidation process
  • liquidate_withdraw: Withdrawal of collateral during liquidation
  • liquidate_fee: Fee charged during liquidation

Table Columns

Column NameDescriptionTypeExample
projectThe lending project namevarchar(8)kamino
protocolThe protocol identifiervarchar(5)klend
lending_idUnique identifier for the lending vaultvarchar6WEGfej9B9wjxRs6t4BYpb9iCXd8CpTpJ8fVSNzHCC5y
lending_reserve_idIdentifier for the lending reservevarcharAtj6UREVWa7WxbF2EMKNyfmYUY1U1txughe2gjhcPDCo
from_addressAddress initiating the transactionvarchar(44)6QbtpY2jDNcncRFmVf343NThnCdaY8gCAsYATPnYQR9g
token_acc_fromToken account of the sendervarchar(44)BBcwMNSMyhhBnYE9pevEvkxKHGzTafMP9v3j7Kk7nAWM
to_addressRecipient address of the transactionvarchar(44)4TtFSyjd3K7puypp5mocHV3hZfFNY9phULg8s8wRXJHR
token_acc_toToken account of the recipientvarchar(44)94Zf7U6DuvqQBAAT3SJDhJaYJMqghHHAzeFCyFHaUkQs
mintToken mint address involved in the transactionvarchar(44)EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
raw_amountRaw amount of tokens transferred (before decimal adjustment)varchar1000000
signerTransaction signer addressvarchar(44)4TtFSyjd3K7puypp5mocHV3hZfFNY9phULg8s8wRXJHR
block_slotSlot number of the block containing the transactionnumber349180297
block_heightHeight of the block in the blockchainnumber327383125
block_timestampTimestamp when the block was confirmedtimestamp_ntz2025-06-25 20:46:10.000
block_hashHash of the block containing the transactionvarchar(44)4vULVdc3nWwcQv4LsRhfZ5Z3BNY4oDKccQEpgu2BWPRa
txn_idTransaction identifiervarchar(88)2Hpxnx8wkbGpRvBgHqiUSuE4ukrEN75qHzSKr2MoQujeYavgrKiXXaffVPr66qZTngQSMMoXRsUdNJ5QzHUf8qsV
txn_indexIndex of the transaction within the blocknumber1164
instruction_indexIndex of the instruction within the transactionnumber8
inner_instruction_indexIndex of inner instruction, if applicablenumber1
pseudo_instruction_orderCombined order of instruction + innerinstruction within the txnnumber9000002
actionType of action causing TVL changevarcharwithdraw
liquidity_vaultAddress of the liquidity vault involvedvarcharBBcwMNSMyhhBnYE9pevEvkxKHGzTafMP9v3j7Kk7nAWM
unique_idUnique identifier for the recordvarchartxn_id-2Hpxnx8wkbGpRvBgHqiUSuE4ukrEN75qHzSKr2MoQujeYavgrKiXXaffVPr66qZTngQSMMoXRsUdNJ5QzHUf8qsV_i_index-8_ii_index-1
nameToken name of the lending assetvarcharUSD Coin
symbolToken symbol for the lending vaultvarcharUSDC
decimalsNumber of decimal places for the tokennumber6
amountAmount of tokens transferred (adjusted for decimals)float1.0
usd_amountEquivalent USD value of the transferred amountfloat1.00

solana.defi.lending_tvl_daily

This table provides daily aggregated TVL metrics, offering convenient access to lending vault performance at daily granularity. The metrics are calculated by aggregating transaction-level data from the solana.defi.lending_tvl table.

Key Metrics Explained

  • NET_DEPOSITS: The net flow of assets into the lending vault on a given date. Calculated as total deposits minus total withdrawals for that day.
  • UNPAID_LOANS: The net change in unpaid loans on a given date. Calculated as borrows minus repayments for that day.

Table Columns

Column NameDescriptionTypeExample
dateDate of the recorded TVL metricstimestamp_ntz2024-01-30 00:00:00+00:00
projectThe lending project namevarchar(8)kamino
protocolThe protocol identifiervarchar(5)klend
lending_idUnique identifier for the lending vaultvarchar6WEGfej9B9wjxRs6t4BYpb9iCXd8CpTpJ8fVSNzHCC5y
lending_reserve_idIdentifier for the lending reservevarcharAtj6UREVWa7WxbF2EMKNyfmYUY1U1txughe2gjhcPDCo
mintToken mint address for the lending assetvarchar(44)EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
net_depositsNet amount of tokens deposited (deposits - withdrawals)float150000.50
unpaid_loansTotal outstanding loans not yet repaidfloat75000.25
usd_net_depositsUSD equivalent of net depositsfloat150000.50
usd_unpaid_loansUSD equivalent of unpaid loansfloat75000.25
token_symbolSymbol of the token associated with the lending vaultvarcharUSDC