Skip to main content
The solana.lending.loans table contains Solana lending loan events (borrows). This table tracks all borrowing activities across supported lending protocols on Solana. Use this table to analyze borrowing patterns, track loan volumes, and understand lending activity across different protocols and tokens.

Table Columns

Unique Key: unique_id
Column NameData TypeDescription
projectVARCHARName of the lending project.
protocolVARCHARUnderlying protocol that the lending protocol is utilizing.
actionVARCHARType of lending action.
lending_idVARCHARAddress of the lending market or bank.
lending_reserve_idVARCHARAddress of the specific lending reserve.
from_addressVARCHARAddress of the token account from which tokens were transferred.
token_acc_fromVARCHARToken account address from which tokens were transferred.
to_addressVARCHARAddress of the token account to which tokens were transferred.
token_acc_toVARCHARToken account address to which tokens were transferred.
mintVARCHARAddress of the token being borrowed.
nameVARCHARName of the token being borrowed.
symbolVARCHARSymbol of the token being borrowed.
decimalsNUMBERNumber of decimals of the token being borrowed.
raw_amountVARCHARRaw amount of tokens borrowed.
amountFLOATNormalized amount of tokens borrowed.
usd_amountFLOATUSD value of the tokens borrowed at the time of the transaction.
signerVARCHARAddress of the account that signed the transaction.
block_slotNUMBERSolana block slot number.
block_heightNUMBERBlock height of the transaction.
block_timestampTIMESTAMP_NTZ(9)Timestamp of the block.
block_hashVARCHARHash of the block.
txn_idVARCHARTransaction ID.
txn_indexNUMBERIndex of the transaction in the block.
instruction_indexNUMBERIndex of the instruction in the transaction.
inner_instruction_indexNUMBERIndex of the inner instruction.
pseudo_instruction_orderNUMBEROrder of the instruction for sorting purposes.
liquidity_vaultVARCHARAddress of the liquidity vault for the lending market.
unique_idVARCHARUnique identifier for the event.
_created_atTIMESTAMP_NTZ(9)Timestamp of when the event was created.
_updated_atTIMESTAMP_NTZ(9)Timestamp of when the event was last updated.

Sample Query

  • Recent Loans
  • Daily Loan Volume
Get recent loan events with essential details:
select
  project,
  protocol,
  symbol,
  amount,
  usd_amount,
  from_address,
  block_timestamp
from solana.lending.loans
where block_timestamp >= current_timestamp - interval '7 days'
order by block_timestamp desc
limit 100